Lines Matching refs:cctx
850 EVP_CIPHER_CTX *cctx = EVP_CIPHER_CTX_new(); in do_PVK_body_key() local
852 if (cctx == NULL) { in do_PVK_body_key()
890 if (!EVP_DecryptInit_ex(cctx, rc4, NULL, keybuf, NULL)) in do_PVK_body_key()
892 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key()
894 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen)) in do_PVK_body_key()
900 if (!EVP_DecryptInit_ex(cctx, rc4, NULL, keybuf, NULL)) in do_PVK_body_key()
902 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body_key()
904 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen)) in do_PVK_body_key()
921 EVP_CIPHER_CTX_free(cctx); in do_PVK_body_key()
1018 EVP_CIPHER_CTX *cctx = NULL; in i2b_PVK() local
1040 cctx = EVP_CIPHER_CTX_new(); in i2b_PVK()
1041 if (cctx == NULL) in i2b_PVK()
1085 if (!EVP_EncryptInit_ex(cctx, rc4, NULL, keybuf, NULL)) in i2b_PVK()
1088 if (!EVP_EncryptUpdate(cctx, p, &enctmplen, p, pklen - 8)) in i2b_PVK()
1090 if (!EVP_EncryptFinal_ex(cctx, p + enctmplen, &enctmplen)) in i2b_PVK()
1102 EVP_CIPHER_CTX_free(cctx); in i2b_PVK()