Home
last modified time | relevance | path

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

/PHP-7.3/ext/openssl/tests/
H A Dopenssl_verify_basic.phpt9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
13 var_dump(openssl_verify($data, $sign, $pubkey));
16 var_dump(openssl_verify($data, $wrong, $pubkey));
17 var_dump(openssl_verify($wrong, $sign, $pubkey));
H A Dopenssl_public_decrypt_basic.phpt9 $pubkey = "file://" . dirname(__FILE__) . "/public.key";
13 var_dump(openssl_public_decrypt($encrypted, $output, $pubkey));
17 var_dump(openssl_public_decrypt($wrong, $output3, $pubkey));
21 var_dump(openssl_public_decrypt($encrypted, $output5, array($pubkey)));
23 var_dump(openssl_public_decrypt($encrypted, $output6, array($pubkey, "")));
H A Dopenssl_private_encrypt_basic.phpt9 $pubkey = "file://" . dirname(__FILE__) . "/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://" . dirname(__FILE__) . "/public.key";
19 var_dump(openssl_public_encrypt($data, $encrypted, $pubkey));
23 var_dump(openssl_public_encrypt($obj, $encrypted, $pubkey));
H A Dbug60632.phpt19 $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://" . dirname(__FILE__) . "/public.key";
12 openssl_public_encrypt($data, $encrypted, $pubkey);
/PHP-7.3/ext/phar/tests/zip/
H A Dphar_setsignaturealgo2.phpt56 $pubkey=openssl_pkey_get_details($keys);
60 file_put_contents($fname6 . '.pubkey', $pubkey['key']);
76 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.6.phar.zip.pubkey');
/PHP-7.3/ext/phar/
H A Dutil.c1492 zend_string *pubkey = NULL; in phar_verify_signature() local
1508 …if (!pfp || !(pubkey = php_stream_copy_to_mem(pfp, PHP_STREAM_COPY_ALL, 0)) || !ZSTR_LEN(pubkey)) { in phar_verify_signature()
1522 …ar_call_openssl_signverify(0, fp, end_of_phar, pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN… in phar_verify_signature()
1523 if (pubkey) { in phar_verify_signature()
1524 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
1534 if (pubkey) { in phar_verify_signature()
1535 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
1540 in = BIO_new_mem_buf(pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN(pubkey) : 0); in phar_verify_signature()
1543 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
1552 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
/PHP-7.3/ext/openssl/
H A DREADME313 $pubkey = openssl_get_publickey($cert);
316 echo openssl_verify($data, $signature, $pubkey) == 1 ? "ok\n" : "bad\n";
319 openssl_free_key($pubkey);
H A Dopenssl.c1939 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
2005 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
6071 zval *pubkeys, *pubkey, *sealdata, *ekeys, *iv = NULL; in PHP_FUNCTION() local
6124 ZEND_HASH_FOREACH_VAL(pubkeysht, pubkey) { in PHP_FUNCTION()
6125 pkeys[i] = php_openssl_evp_from_zval(pubkey, 1, NULL, 0, 0, &key_resources[i]); in PHP_FUNCTION()

Completed in 28 milliseconds