Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 – 10 of 10) sorted by relevance

/php-src/ext/openssl/tests/
H A Dopenssl_public_decrypt_basic.phpt9 $pubkey = "file://" . __DIR__ . "/public.key";
13 var_dump(openssl_public_decrypt($encrypted, $output, $pubkey));
17 var_dump(openssl_public_decrypt($wrong, $output3, $pubkey));
28 var_dump(openssl_public_decrypt($encrypted, $output5, array($pubkey)));
33 var_dump(openssl_public_decrypt($encrypted, $output6, array($pubkey, "")));
H A Dopenssl_verify_basic.phpt9 $pubkey = "file://" . __DIR__ . "/public.key";
13 var_dump(openssl_verify($data, $sign, $pubkey, OPENSSL_ALGO_SHA256));
16 var_dump(openssl_verify($data, $wrong, $pubkey, OPENSSL_ALGO_SHA256));
17 var_dump(openssl_verify($wrong, $sign, $pubkey, OPENSSL_ALGO_SHA256));
H A Dopenssl_private_encrypt_basic.phpt9 $pubkey = "file://" . __DIR__ . "/public.key";
20 var_dump(openssl_private_encrypt($data, $encrypted, $pubkey));
24 openssl_public_decrypt($encrypted, $output, $pubkey);
H A Dopenssl_public_encrypt_basic.phpt9 $pubkey = "file://" . __DIR__ . "/public.key";
19 var_dump(openssl_public_encrypt($data, $encrypted, $pubkey));
23 var_dump(openssl_public_encrypt($obj, $encrypted, $pubkey));
H A Dbug60632.phpt17 $pubkey = openssl_pkey_get_public($test_pubkey);
22 $result = openssl_seal('test phrase', $encrypted, $ekeys, array($pubkey), 'AES-256-CBC');
H A Dopenssl_private_decrypt_basic.phpt9 $pubkey = "file://" . __DIR__ . "/public.key";
12 openssl_public_encrypt($data, $encrypted, $pubkey, OPENSSL_PKCS1_OAEP_PADDING);
H A Decc_sm2.phpt28 echo "Testing openssl_pkey_get_public from SM2 pem pubkey\n";
77 Testing openssl_pkey_get_public from SM2 pem pubkey
/php-src/ext/phar/tests/zip/
H A Dphar_setsignaturealgo2.phpt57 $pubkey=openssl_pkey_get_details($keys);
61 file_put_contents($fname6 . '.pubkey', $pubkey['key']);
76 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.6.phar.zip.pubkey');
/php-src/ext/phar/
H A Dutil.c1547 zend_string *pubkey = NULL; in phar_verify_signature() local
1563 …if (!pfp || !(pubkey = php_stream_copy_to_mem(pfp, PHP_STREAM_COPY_ALL, 0)) || !ZSTR_LEN(pubkey)) { in phar_verify_signature()
1577 …= phar_call_openssl_signverify(false, fp, end_of_phar, ZSTR_VAL(pubkey), ZSTR_LEN(pubkey), &sig, &… in phar_verify_signature()
1578 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
1587 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
1591 in = BIO_new_mem_buf(ZSTR_VAL(pubkey), ZSTR_LEN(pubkey)); in phar_verify_signature()
1594 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
1603 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
/php-src/ext/openssl/
H A Dopenssl.c1712 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1770 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
7264 zval *pubkeys, *pubkey, *sealdata, *ekeys, *iv = NULL; local
7310 ZEND_HASH_FOREACH_VAL(pubkeysht, pubkey) {
7311 pkeys[i] = php_openssl_pkey_from_zval(pubkey, 1, NULL, 0, 4);

Completed in 44 milliseconds