Lines Matching refs:cipher_ctx

5690 	EVP_CIPHER_CTX *cipher_ctx;  in PHP_FUNCTION()  local
5709 cipher_ctx = EVP_CIPHER_CTX_new(); in PHP_FUNCTION()
5710 if (!cipher_ctx) { in PHP_FUNCTION()
5733 EVP_EncryptInit(cipher_ctx, cipher_type, NULL, NULL); in PHP_FUNCTION()
5735 EVP_CIPHER_CTX_set_key_length(cipher_ctx, (int)password_len); in PHP_FUNCTION()
5737 EVP_EncryptInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)iv); in PHP_FUNCTION()
5739 EVP_CIPHER_CTX_set_padding(cipher_ctx, 0); in PHP_FUNCTION()
5742 …EVP_EncryptUpdate(cipher_ctx, (unsigned char*)ZSTR_VAL(outbuf), &i, (unsigned char *)data, (int)da… in PHP_FUNCTION()
5745 if (EVP_EncryptFinal(cipher_ctx, (unsigned char *)ZSTR_VAL(outbuf) + i, &i)) { in PHP_FUNCTION()
5768 EVP_CIPHER_CTX_free(cipher_ctx); in PHP_FUNCTION()
5780 EVP_CIPHER_CTX *cipher_ctx; in PHP_FUNCTION() local
5806 cipher_ctx = EVP_CIPHER_CTX_new(); in PHP_FUNCTION()
5807 if (!cipher_ctx) { in PHP_FUNCTION()
5816 EVP_CIPHER_CTX_free(cipher_ctx); in PHP_FUNCTION()
5837 EVP_DecryptInit(cipher_ctx, cipher_type, NULL, NULL); in PHP_FUNCTION()
5839 EVP_CIPHER_CTX_set_key_length(cipher_ctx, (int)password_len); in PHP_FUNCTION()
5841 EVP_DecryptInit_ex(cipher_ctx, NULL, NULL, key, (unsigned char *)iv); in PHP_FUNCTION()
5843 EVP_CIPHER_CTX_set_padding(cipher_ctx, 0); in PHP_FUNCTION()
5845 …EVP_DecryptUpdate(cipher_ctx, (unsigned char*)ZSTR_VAL(outbuf), &i, (unsigned char *)data, (int)da… in PHP_FUNCTION()
5847 if (EVP_DecryptFinal(cipher_ctx, (unsigned char *)ZSTR_VAL(outbuf) + i, &i)) { in PHP_FUNCTION()
5865 EVP_CIPHER_CTX_free(cipher_ctx); in PHP_FUNCTION()