Lines Matching defs:ctx
53 EVP_CIPHER_CTX *ctx;
91 ctx = EVP_CIPHER_CTX_new();
92 if (ctx == NULL) {
97 ret = EVP_EncryptInit_ex(ctx, cipher, 0, key, evpivlen ? out : NULL);
105 ret = EVP_EncryptUpdate(ctx, out + outlen, &tmplen, plaintext, plainlen);
113 ret = EVP_EncryptFinal_ex(ctx, out + outlen, &tmplen);
162 EVP_CIPHER_CTX_free(ctx);
175 EVP_CIPHER_CTX *ctx = NULL;
251 ctx = EVP_CIPHER_CTX_new();
252 if (ctx == NULL) {
257 ret = EVP_DecryptInit_ex(ctx, cipher, 0, key, iv);
263 ret = EVP_DecryptUpdate(ctx, out, &outlen,
271 ret = EVP_DecryptFinal_ex(ctx, out + outlen, &tmplen);
285 EVP_CIPHER_CTX_free(ctx);