Lines Matching defs:ctx
77 EVP_CIPHER_CTX *ctx;
96 BIO_get_cipher_ctx(b, &ctx);
114 if (EVP_CipherInit_ex(ctx, ciph, NULL, NULL, NULL, enc) <= 0) {
121 calg->algorithm = OBJ_nid2obj(EVP_CIPHER_CTX_type(ctx));
123 ivlen = EVP_CIPHER_CTX_iv_length(ctx);
128 } else if (EVP_CIPHER_asn1_to_param(ctx, calg->parameter) <= 0) {
132 tkeylen = EVP_CIPHER_CTX_key_length(ctx);
140 if (EVP_CIPHER_CTX_rand_key(ctx, tkey) <= 0)
157 if (!EVP_CIPHER_CTX_set_key_length(ctx, ec->keylen)) {
176 if (EVP_CipherInit_ex(ctx, NULL, NULL, ec->key, piv, enc) <= 0) {
186 if (EVP_CIPHER_param_to_asn1(ctx, calg->parameter) <= 0) {