Searched refs:pubkey (Results 1 – 9 of 9) sorted by relevance
/PHP-8.2/ext/openssl/tests/ |
H A D | openssl_public_decrypt_basic.phpt | 9 $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 D | openssl_verify_basic.phpt | 9 $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 D | openssl_private_encrypt_basic.phpt | 9 $pubkey = "file://" . __DIR__ . "/public.key"; 20 var_dump(openssl_private_encrypt($data, $encrypted, $pubkey)); 24 openssl_public_decrypt($encrypted, $output, $pubkey);
|
H A D | openssl_public_encrypt_basic.phpt | 9 $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 D | bug60632.phpt | 17 $pubkey = openssl_pkey_get_public($test_pubkey); 22 $result = openssl_seal('test phrase', $encrypted, $ekeys, array($pubkey), 'AES-256-CBC');
|
H A D | openssl_private_decrypt_basic.phpt | 9 $pubkey = "file://" . __DIR__ . "/public.key"; 12 openssl_public_encrypt($data, $encrypted, $pubkey, OPENSSL_PKCS1_OAEP_PADDING);
|
/PHP-8.2/ext/phar/tests/zip/ |
H A D | phar_setsignaturealgo2.phpt | 56 $pubkey=openssl_pkey_get_details($keys); 60 file_put_contents($fname6 . '.pubkey', $pubkey['key']); 75 unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.6.phar.zip.pubkey');
|
/PHP-8.2/ext/phar/ |
H A D | util.c | 1512 zend_string *pubkey = NULL; in phar_verify_signature() local 1528 …if (!pfp || !(pubkey = php_stream_copy_to_mem(pfp, PHP_STREAM_COPY_ALL, 0)) || !ZSTR_LEN(pubkey)) { in phar_verify_signature() 1542 …ar_call_openssl_signverify(0, fp, end_of_phar, pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN… in phar_verify_signature() 1543 if (pubkey) { in phar_verify_signature() 1544 zend_string_release_ex(pubkey, 0); in phar_verify_signature() 1554 if (pubkey) { in phar_verify_signature() 1555 zend_string_release_ex(pubkey, 0); in phar_verify_signature() 1560 in = BIO_new_mem_buf(pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN(pubkey) : 0); in phar_verify_signature() 1563 zend_string_release_ex(pubkey, 0); in phar_verify_signature() 1572 zend_string_release_ex(pubkey, 0); in phar_verify_signature()
|
/PHP-8.2/ext/openssl/ |
H A D | openssl.c | 1647 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION() 1705 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION() 6845 zval *pubkeys, *pubkey, *sealdata, *ekeys, *iv = NULL; in PHP_FUNCTION() local 6891 ZEND_HASH_FOREACH_VAL(pubkeysht, pubkey) { in PHP_FUNCTION() 6892 pkeys[i] = php_openssl_pkey_from_zval(pubkey, 1, NULL, 0, 4); in PHP_FUNCTION()
|
Completed in 31 milliseconds