| evp-openssl.c | 95 struct ossl_cipher_ctx { struct 96 EVP_CIPHER_CTX *ossl_cipher_ctx; /* OpenSSL cipher ctx */ member in struct:ossl_cipher_ctx 114 struct ossl_cipher_ctx *ossl_ctx = ctx->cipher_data; /* EVP_CIPHER_CTX wrapper */ 136 ossl_ctx->ossl_cipher_ctx = EVP_CIPHER_CTX_new(); 137 if (ossl_ctx->ossl_cipher_ctx == NULL) 143 if (!EVP_CipherInit_ex(ossl_ctx->ossl_cipher_ctx, c, NULL, NULL, NULL, enc)) 151 EVP_CIPHER_CTX_set_key_length(ossl_ctx->ossl_cipher_ctx, ctx->key_len); 153 return EVP_CipherInit_ex(ossl_ctx->ossl_cipher_ctx, NULL, NULL, key, iv, enc); 160 struct ossl_cipher_ctx *ossl_ctx = ctx->cipher_data; 163 return EVP_Cipher(ossl_ctx->ossl_cipher_ctx, out, in, len) [all...] |