Lines Matching defs:ctx
323 EVP_CIPHER_CTX *ctx = NULL;
331 if ((ctx = EVP_CIPHER_CTX_new()) == NULL) {
374 if (!EVP_EncryptInit(ctx, cipher, rt->key, NULL)) {
384 if (!EVP_EncryptUpdate(ctx, out + total_len, &out_len,
395 if (!EVP_EncryptFinal_ex(ctx, out + total_len, &out_len)) {
401 if (!EVP_CIPHER_CTX_reset(ctx)) {
420 if (!EVP_DecryptInit(ctx, cipher, rt->key, NULL)) {
430 if (!EVP_DecryptUpdate(ctx, out + total_len, &out_len,
441 if (!EVP_DecryptFinal_ex(ctx, out + total_len, &out_len)) {
447 if (!EVP_CIPHER_CTX_reset(ctx)) {
467 EVP_CIPHER_CTX_free(ctx);