Home
last modified time | relevance | path

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

/PHP-5.6/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.phpt18 $pubkey = openssl_pkey_get_public($test_pubkey);
21 $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-5.6/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-5.6/ext/phar/
H A Dutil.c1539 char *pubkey = NULL, *pfile; local
1555 … !(pubkey_len = php_stream_copy_to_mem(pfp, (void **) &pubkey, PHP_STREAM_COPY_ALL, 0)) || !pubkey
1557 …f (!pfp || !(pubkey_len = php_stream_copy_to_mem(pfp, &pubkey, PHP_STREAM_COPY_ALL, 0)) || !pubkey
1572 …if (FAILURE == phar_call_openssl_signverify(0, fp, end_of_phar, pubkey, pubkey_len, &sig, &tempsig…
1573 if (pubkey) {
1574 efree(pubkey);
1584 if (pubkey) {
1585 efree(pubkey);
1590 in = BIO_new_mem_buf(pubkey, pubkey_len);
1593 efree(pubkey);
[all …]
/PHP-5.6/ext/openssl/
H A DREADME315 $pubkey = openssl_get_publickey($cert);
318 echo openssl_verify($data, $signature, $pubkey) == 1 ? "ok\n" : "bad\n";
321 openssl_free_key($pubkey);
H A Dopenssl.c1607 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
1663 pkey = X509_PUBKEY_get(spki->spkac->pubkey); in PHP_FUNCTION()
4909 zval *pubkeys, **pubkey, *sealdata, *ekeys; in PHP_FUNCTION() local
4957 while (zend_hash_get_current_data_ex(pubkeysht, (void **) &pubkey, in PHP_FUNCTION()
4959 pkeys[i] = php_openssl_evp_from_zval(pubkey, 1, NULL, 0, &key_resources[i] TSRMLS_CC); in PHP_FUNCTION()

Completed in 110 milliseconds