Searched refs:dh (Results 26 – 29 of 29) sorted by last modified time
12
19 $dh = opendir(".");20 while (is_string($file = readdir($dh))) {25 closedir($dh);
13 $dh = openssl_pkey_new(array('dh'=> array('p' => $phex, 'g' => '2')));14 var_dump($dh);15 $dh = openssl_pkey_new(array('dh'=> array( 'p' => hex2bin($phex), 'g' => '2')));16 $details = openssl_pkey_get_details($dh);17 var_dump(bin2hex($details['dh']['p']));18 var_dump($details['dh']['g']);19 var_dump(strlen($details['dh']['pub_key']) > 0);20 var_dump(strlen($details['dh']['priv_key']) > 0);
13 $opensslKeyResource = openssl_pkey_new(['dh' => $details]);16 printf("Private key:\n%s\n", base64_encode($data['dh']['priv_key']));17 printf("Public key:\n%s\n", base64_encode($data['dh']['pub_key']));
82 $dh = openssl_pkey_new(array(83 'dh'=> array('p' => hex2bin($phex), 'g' => '2'))85 $details = openssl_pkey_get_details($dh);86 $dh_details = $details['dh'];
Completed in 8 milliseconds