Functions | |
AXIS2_EXTERN int | openssl_bc_crypt (const axutil_env_t *env, openssl_cipher_ctx_t *oc_ctx, oxs_buffer_t *input_buf, oxs_buffer_t *output_buf, int encrypt) |
AXIS2_EXTERN int openssl_bc_crypt | ( | const axutil_env_t * | env, | |
openssl_cipher_ctx_t * | oc_ctx, | |||
oxs_buffer_t * | input_buf, | |||
oxs_buffer_t * | output_buf, | |||
int | encrypt | |||
) |
Encrypt or decrypts data in the and place the result in the . This function works for block ciphers AES-128, AES-192, AES-256 and 3-DES The key and the cipher name must be specified in the cipher context. pointer to environment struct openssl block cipher context the input buffer to en/decrypt the output buffer to place en/decrypted result For encryption encrypt=OPENSSL_ENCRYPT and for decryption encrypt=OPENSSL_DECRYPT