- def __init__(self, libcrypto, cipher_algo, cipher_mode):\r
- self.libcrypto = libcrypto\r
- self.cipher_algo = cipher_algo\r
- self.cipher_mode = cipher_mode\r
- cipher_name = "-".join([self.cipher_algo, self.cipher_mode])\r
- self.cipher = self.libcrypto.EVP_get_cipherbyname(cipher_name)\r
- if self.cipher == 0:\r
+ def __init__(self, cipher_name):\r
+ self.cipher = libcrypto.EVP_get_cipherbyname(cipher_name)\r
+ if self.cipher is None:\r