e_rc5.c File Reference

r_32_12_16_init_key(EVP_CIPHER_CTX *, const unsigned char *, const unsigned char *, int)

int r_32_12_16_init_key ( EVP_CIPHER_CTX * ctx,
const unsigned char * key,
const unsigned char * iv,
int enc
) [static]

Parameters

EVP_CIPHER_CTX * ctx
const unsigned char * key
const unsigned char * iv
int enc

rc5_ctrl(EVP_CIPHER_CTX *, int, int, void *)

int rc5_ctrl ( EVP_CIPHER_CTX * c,
int type,
int arg,
void * ptr
) [static]

Parameters

EVP_CIPHER_CTX * c
int type
int arg
void * ptr

data

IMPLEMENT_BLOCK_CIPHER(rc5_32_12_16, ks, RC5_32, EVP_RC5_KEY, NID_rc5, 8, RC5_32_KEY_LENGTH, 8, 64, EVP_CIPH_VARIABLE_LENGTH|, r_32_12_16_init_key, NULL, NULL, NULL, rc5_ctrl)

IMPLEMENT_BLOCK_CIPHER ( rc5_32_12_16 ,
ks ,
RC5_32 ,
EVP_RC5_KEY ,
NID_rc5 ,
8 ,
RC5_32_KEY_LENGTH ,
8 ,
64 ,
EVP_CIPH_VARIABLE_LENGTH| EVP_CIPH_CTRL_INIT,
r_32_12_16_init_key ,
NULL ,
NULL ,
NULL ,
rc5_ctrl
)

Parameters

rc5_32_12_16
ks
RC5_32
EVP_RC5_KEY
NID_rc5
8
RC5_32_KEY_LENGTH
8
64
EVP_CIPH_VARIABLE_LENGTH| EVP_CIPH_CTRL_INIT
r_32_12_16_init_key
NULL
NULL
NULL
rc5_ctrl

switch(type)

int int void *ptr switch ( type )

Parameters

type