Lines Matching defs:ctx
72 static int desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
74 static int desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
84 #define data(ctx) ((DESX_CBC_KEY *)(ctx)->cipher_data)
109 desx_cbc_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
114 DES_set_key_unchecked(deskey, &data(ctx)->ks);
115 memcpy(&data(ctx)->inw[0], &key[8], 8);
116 memcpy(&data(ctx)->outw[0], &key[16], 8);
122 desx_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
126 DES_xcbc_encrypt(in, out, (long)EVP_MAXCHUNK, &data(ctx)->ks,
127 (DES_cblock *)&(ctx->iv[0]), &data(ctx)->inw,
128 &data(ctx)->outw, ctx->encrypt);
134 DES_xcbc_encrypt(in, out, (long)inl, &data(ctx)->ks,
135 (DES_cblock *)&(ctx->iv[0]), &data(ctx)->inw,
136 &data(ctx)->outw, ctx->encrypt);