OpenSSL Crypt
[OpenSSL wrapper]


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)

Function Documentation

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

Returns:
the length of the en/decrypted result OR -1 if failed


Generated on Wed Oct 14 01:02:16 2009 for Rampart/C by  doxygen 1.5.7.1