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