Changed encryption for key pairs to use the 'crypt_stream' (AES) implementation.