Searched refs:pubkey (Results 1 – 10 of 10) sorted by relevance
/PHP-7.0/ext/openssl/tests/ |
H A D | openssl_verify_basic.phpt | 9 $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 D | openssl_public_decrypt_basic.phpt | 9 $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 D | openssl_private_encrypt_basic.phpt | 9 $pubkey = "file://" . dirname(__FILE__) . "/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://" . dirname(__FILE__) . "/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 | 19 $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://" . dirname(__FILE__) . "/public.key"; 12 openssl_public_encrypt($data, $encrypted, $pubkey);
|
/PHP-7.0/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']); 76 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.6.phar.zip.pubkey');
|
/PHP-7.0/ext/phar/ |
H A D | util.c | 1501 zend_string *pubkey = NULL; in phar_verify_signature() local 1517 …if (!pfp || !(pubkey = php_stream_copy_to_mem(pfp, PHP_STREAM_COPY_ALL, 0)) || !ZSTR_LEN(pubkey)) { in phar_verify_signature() 1531 …ar_call_openssl_signverify(0, fp, end_of_phar, pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN… in phar_verify_signature() 1532 if (pubkey) { in phar_verify_signature() 1533 zend_string_release(pubkey); in phar_verify_signature() 1543 if (pubkey) { in phar_verify_signature() 1544 zend_string_release(pubkey); in phar_verify_signature() 1549 in = BIO_new_mem_buf(pubkey ? ZSTR_VAL(pubkey) : NULL, pubkey ? ZSTR_LEN(pubkey) : 0); in phar_verify_signature() 1552 zend_string_release(pubkey); in phar_verify_signature() 1561 zend_string_release(pubkey); in phar_verify_signature()
|
/PHP-7.0/ext/openssl/ |
H A D | README | 315 $pubkey = openssl_get_publickey($cert); 318 echo openssl_verify($data, $signature, $pubkey) == 1 ? "ok\n" : "bad\n"; 321 openssl_free_key($pubkey);
|
H A D | openssl.c | 1823 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION() 1885 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION() 5347 zval *pubkeys, *pubkey, *sealdata, *ekeys, *iv = NULL; in PHP_FUNCTION() local 5400 ZEND_HASH_FOREACH_VAL(pubkeysht, pubkey) { in PHP_FUNCTION() 5401 pkeys[i] = php_openssl_evp_from_zval(pubkey, 1, NULL, 0, 0, &key_resources[i]); in PHP_FUNCTION()
|
Completed in 42 milliseconds