Lines Matching refs:key

139     ZEND_ARG_INFO(0, key)
225 ZEND_ARG_INFO(0, key)
232 ZEND_ARG_INFO(0, key)
243 ZEND_ARG_INFO(0, key)
247 ZEND_ARG_INFO(0, key)
252 ZEND_ARG_INFO(0, key)
293 ZEND_ARG_INFO(0, key)
300 ZEND_ARG_INFO(0, key)
307 ZEND_ARG_INFO(0, key)
314 ZEND_ARG_INFO(0, key)
324 ZEND_ARG_INFO(0, key)
331 ZEND_ARG_INFO(0, key)
566 static void add_assoc_name_entry(zval * val, char * key, X509_NAME * name, int shortname TSRMLS_DC)… in add_assoc_name_entry() argument
577 if (key != NULL) { in add_assoc_name_entry()
625 if (key != NULL) { in add_assoc_name_entry()
626 zend_hash_update(HASH_OF(val), key, strlen(key) + 1, (void *)&subitem, sizeof(subitem), NULL); in add_assoc_name_entry()
631 static void add_assoc_asn1_string(zval * val, char * key, ASN1_STRING * str) /* {{{ */ in add_assoc_asn1_string() argument
633 add_assoc_stringl(val, key, (char *)str->data, str->length, 1); in add_assoc_asn1_string()
784 #define SET_OPTIONAL_STRING_ARG(key, varname, defval) \ argument
785 …if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), key, sizeof(key), (void**)&item) ==…
790 #define SET_OPTIONAL_LONG_ARG(key, varname, defval) \ argument
791 …if (optional_args && zend_hash_find(Z_ARRVAL_P(optional_args), key, sizeof(key), (void**)&item) ==…
1391 EVP_PKEY * key = NULL; in PHP_FUNCTION() local
1403 key = php_openssl_evp_from_zval(zkey, 0, "", 1, &keyresource TSRMLS_CC); in PHP_FUNCTION()
1404 if (key) { in PHP_FUNCTION()
1405 RETVAL_BOOL(X509_check_private_key(cert, key)); in PHP_FUNCTION()
1408 if (keyresource == -1 && key) { in PHP_FUNCTION()
1409 EVP_PKEY_free(key); in PHP_FUNCTION()
2485 EVP_PKEY * key = NULL, *priv_key = NULL; in PHP_FUNCTION() local
2522 key = X509_REQ_get_pubkey(csr); in PHP_FUNCTION()
2523 if (key == NULL) { in PHP_FUNCTION()
2527 i = X509_REQ_verify(csr, key); in PHP_FUNCTION()
2561 i = X509_set_pubkey(new_cert, key); in PHP_FUNCTION()
2595 if (key) { in PHP_FUNCTION()
2596 EVP_PKEY_free(key); in PHP_FUNCTION()
2765 EVP_PKEY * key = NULL; in php_openssl_evp_from_zval() local
2878 key = PEM_read_bio_PUBKEY(in, NULL,NULL, NULL); in php_openssl_evp_from_zval()
2897 key = PEM_read_bio_PrivateKey(in, NULL,NULL, passphrase); in php_openssl_evp_from_zval()
2902 if (public_key && cert && key == NULL) { in php_openssl_evp_from_zval()
2904 key = (EVP_PKEY *) X509_get_pubkey(cert); in php_openssl_evp_from_zval()
2910 if (key && makeresource && resourceval) { in php_openssl_evp_from_zval()
2911 *resourceval = ZEND_REGISTER_RESOURCE(NULL, key, le_key); in php_openssl_evp_from_zval()
2916 return key; in php_openssl_evp_from_zval()
3186 EVP_PKEY * key; in PHP_FUNCTION() local
3195 key = php_openssl_evp_from_zval(zpkey, 0, passphrase, 0, &key_resource TSRMLS_CC); in PHP_FUNCTION()
3197 if (key == NULL) { in PHP_FUNCTION()
3220 …if (PEM_write_bio_PrivateKey(bio_out, key, cipher, (unsigned char *)passphrase, passphrase_len, NU… in PHP_FUNCTION()
3228 if (key_resource == -1 && key) { in PHP_FUNCTION()
3229 EVP_PKEY_free(key); in PHP_FUNCTION()
3245 EVP_PKEY * key; in PHP_FUNCTION() local
3254 key = php_openssl_evp_from_zval(zpkey, 0, passphrase, 0, &key_resource TSRMLS_CC); in PHP_FUNCTION()
3256 if (key == NULL) { in PHP_FUNCTION()
3275 …if (PEM_write_bio_PrivateKey(bio_out, key, cipher, (unsigned char *)passphrase, passphrase_len, NU… in PHP_FUNCTION()
3290 if (key_resource == -1 && key) { in PHP_FUNCTION()
3291 EVP_PKEY_free(key); in PHP_FUNCTION()
3323 zval *key; in PHP_FUNCTION() local
3326 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &key) == FAILURE) { in PHP_FUNCTION()
3329 ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); in PHP_FUNCTION()
3330 zend_list_delete(Z_LVAL_P(key)); in PHP_FUNCTION()
3361 zval *key; in PHP_FUNCTION() local
3368 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &key) == FAILURE) { in PHP_FUNCTION()
3371 ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); in PHP_FUNCTION()
3826 EVP_PKEY * key = NULL; in PHP_FUNCTION() local
3846 key = php_openssl_evp_from_zval(recipkey ? recipkey : recipcert, 0, "", 0, &keyresval TSRMLS_CC); in PHP_FUNCTION()
3847 if (key == NULL) { in PHP_FUNCTION()
3870 if (PKCS7_decrypt(p7, key, cert, out, PKCS7_DETACHED)) { in PHP_FUNCTION()
3881 if (key && keyresval == -1) { in PHP_FUNCTION()
3882 EVP_PKEY_free(key); in PHP_FUNCTION()
3893 zval **key, *crypted; in PHP_FUNCTION() local
3903 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &p… in PHP_FUNCTION()
3908 pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); in PHP_FUNCTION()
3951 zval **key, *crypted; in PHP_FUNCTION() local
3962 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &p… in PHP_FUNCTION()
3967 pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); in PHP_FUNCTION()
4017 zval **key, *crypted; in PHP_FUNCTION() local
4027 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &p… in PHP_FUNCTION()
4032 pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); in PHP_FUNCTION()
4075 zval **key, *crypted; in PHP_FUNCTION() local
4086 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|l", &data, &data_len, &crypted, &key, &p… in PHP_FUNCTION()
4091 pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); in PHP_FUNCTION()
4163 zval **key, *signature; in PHP_FUNCTION() local
4175 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "szZ|z", &data, &data_len, &signature, &key, … in PHP_FUNCTION()
4178 pkey = php_openssl_evp_from_zval(key, 0, "", 0, &keyresource TSRMLS_CC); in PHP_FUNCTION()
4225 zval **key; in PHP_FUNCTION() local
4236 …_ARGS() TSRMLS_CC, "ssZ|z", &data, &data_len, &signature, &signature_len, &key, &method) == FAILUR… in PHP_FUNCTION()
4256 pkey = php_openssl_evp_from_zval(key, 1, NULL, 0, &keyresource TSRMLS_CC); in PHP_FUNCTION()
4682 EVP_PKEY *key = NULL; in php_SSL_new_from_context() local
4687 key = X509_get_pubkey(cert); in php_SSL_new_from_context()
4688 EVP_PKEY_copy_parameters(key, SSL_get_privatekey(tmpssl)); in php_SSL_new_from_context()
4689 EVP_PKEY_free(key); in php_SSL_new_from_context()
4848 unsigned char *outbuf, *key; in PHP_FUNCTION() local
4862 key = emalloc(keylen); in PHP_FUNCTION()
4863 memset(key, 0, keylen); in PHP_FUNCTION()
4864 memcpy(key, password, password_len); in PHP_FUNCTION()
4866 key = (unsigned char*)password; in PHP_FUNCTION()
4882 EVP_EncryptInit_ex(&cipher_ctx, NULL, NULL, key, (unsigned char *)iv); in PHP_FUNCTION()
4907 if (key != (unsigned char*)password) { in PHP_FUNCTION()
4908 efree(key); in PHP_FUNCTION()
4927 unsigned char *outbuf, *key; in PHP_FUNCTION() local
4959 key = emalloc(keylen); in PHP_FUNCTION()
4960 memset(key, 0, keylen); in PHP_FUNCTION()
4961 memcpy(key, password, password_len); in PHP_FUNCTION()
4963 key = (unsigned char*)password; in PHP_FUNCTION()
4975 EVP_DecryptInit_ex(&cipher_ctx, NULL, NULL, key, (unsigned char *)iv); in PHP_FUNCTION()
4989 if (key != (unsigned char*)password) { in PHP_FUNCTION()
4990 efree(key); in PHP_FUNCTION()
5033 zval *key; in PHP_FUNCTION() local
5041 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sr", &pub_str, &pub_len, &key) == FAILURE) { in PHP_FUNCTION()
5044 ZEND_FETCH_RESOURCE(pkey, EVP_PKEY *, &key, -1, "OpenSSL key", le_key); in PHP_FUNCTION()