Typically , a cryptosystem consists of three algorithms : one for key generation , one for encryption , and one for decryption .

Typically , a cryptosystem consists of three algorithms : Key generation algorithm .
