Lines Matching refs:ctx
68 static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
70 static int desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
81 #define data(ctx) ((DESX_CBC_KEY *)(ctx)->cipher_data)
103 static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
108 DES_set_key_unchecked(deskey,&data(ctx)->ks);
109 memcpy(&data(ctx)->inw[0],&key[8],8);
110 memcpy(&data(ctx)->outw[0],&key[16],8);
115 static int desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
118 DES_xcbc_encrypt(in,out,inl,&data(ctx)->ks,
119 (DES_cblock *)&(ctx->iv[0]),
120 &data(ctx)->inw,
121 &data(ctx)->outw,
122 ctx->encrypt);