|
Create a cipher codec_t object at *pcc suitable for encryption or decryption (depending on op ). The cipher , key and iv parameters hold the algorithm, key and initialisation vector respectively, used for the data transforms.
- Parameters:
-
| op | one of CIPHER_ENCRYPT or CIPHER_DECRYPT |
| cipher | an OpenSSL EVP_CIPHER object |
| key | the encryption/decryption key |
| iv | the initialisation vector |
| pcc | the created codec as a value-result arguement |
- Returns:
0 on success, ~0 otherwise
Definition at line 172 of file cipher.c. |