Home | History | Annotate | Download | only in evp

Lines Matching refs:ctx

68 static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
74 static int des_ecb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
78 DES_ecb_encrypt((DES_cblock *)(in + i), (DES_cblock *)(out + i), ctx->cipher_data, ctx->encrypt);
82 static int des_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
85 DES_ofb64_encrypt(in, out, (long)inl, ctx->cipher_data, (DES_cblock *)ctx->iv, &ctx->num);
89 static int des_cbc_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
92 DES_ncbc_encrypt(in, out, (long)inl, ctx->cipher_data,
93 (DES_cblock *)ctx->iv, ctx->encrypt);
97 static int des_cfb64_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
100 DES_cfb64_encrypt(in, out, (long)inl, ctx->cipher_data,
101 (DES_cblock *)ctx->iv, &ctx->num, ctx->encrypt);
107 static int des_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
116 DES_cfb_encrypt(c,d,1,1,ctx->cipher_data,(DES_cblock *)ctx->iv,
117 ctx->encrypt);
123 static int des_cfb8_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
126 DES_cfb_encrypt(in,out,8,inl,ctx->cipher_data,(DES_cblock *)ctx->iv,
127 ctx->encrypt);
150 static int des_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
155 if(DES_set_key_checked(deskey,ctx->cipher_data) != 0)
158 DES_set_key_unchecked(deskey,ctx->cipher_data);