Lines Matching refs:publickey
809 char *publickey; in PHP_FUNCTION() local
817 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
832 memcpy(ZSTR_VAL(keypair) + crypto_box_SECRETKEYBYTES, publickey, in PHP_FUNCTION()
864 zend_string *publickey; in PHP_FUNCTION() local
878 publickey = zend_string_alloc(crypto_box_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
879 memcpy(ZSTR_VAL(publickey), keypair + crypto_box_SECRETKEYBYTES, in PHP_FUNCTION()
881 ZSTR_VAL(publickey)[crypto_box_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
883 RETURN_STR(publickey); in PHP_FUNCTION()
888 zend_string *publickey; in PHP_FUNCTION() local
901 publickey = zend_string_alloc(crypto_box_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
906 crypto_scalarmult_base((unsigned char *) ZSTR_VAL(publickey), secretkey); in PHP_FUNCTION()
907 ZSTR_VAL(publickey)[crypto_box_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
909 RETURN_STR(publickey); in PHP_FUNCTION()
918 unsigned char *publickey; in PHP_FUNCTION() local
940 publickey = keypair + crypto_box_SECRETKEYBYTES; in PHP_FUNCTION()
948 nonce, publickey, secretkey) != 0) { in PHP_FUNCTION()
964 unsigned char *publickey; in PHP_FUNCTION() local
986 publickey = keypair + crypto_box_SECRETKEYBYTES; in PHP_FUNCTION()
993 nonce, publickey, secretkey) != 0) { in PHP_FUNCTION()
1006 unsigned char *publickey; in PHP_FUNCTION() local
1012 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1026 (unsigned long long) msg_len, publickey) != 0) { in PHP_FUNCTION()
1041 unsigned char *publickey; in PHP_FUNCTION() local
1057 publickey = keypair + crypto_box_SECRETKEYBYTES; in PHP_FUNCTION()
1064 publickey, secretkey) != 0) { in PHP_FUNCTION()
1129 char *publickey; in PHP_FUNCTION() local
1137 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1152 memcpy(ZSTR_VAL(keypair) + crypto_sign_SECRETKEYBYTES, publickey, in PHP_FUNCTION()
1161 zend_string *publickey; in PHP_FUNCTION() local
1174 publickey = zend_string_alloc(crypto_sign_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
1176 if (crypto_sign_ed25519_sk_to_pk((unsigned char *) ZSTR_VAL(publickey), in PHP_FUNCTION()
1182 ZSTR_VAL(publickey)[crypto_sign_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
1184 RETURN_STR(publickey); in PHP_FUNCTION()
1212 zend_string *publickey; in PHP_FUNCTION() local
1226 publickey = zend_string_alloc(crypto_sign_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
1227 memcpy(ZSTR_VAL(publickey), keypair + crypto_sign_SECRETKEYBYTES, in PHP_FUNCTION()
1229 ZSTR_VAL(publickey)[crypto_sign_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
1231 RETURN_STR(publickey); in PHP_FUNCTION()
1282 unsigned char *publickey; in PHP_FUNCTION() local
1290 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1306 publickey) != 0) { in PHP_FUNCTION()
1363 unsigned char *publickey; in PHP_FUNCTION() local
1372 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1386 publickey) != 0) { in PHP_FUNCTION()
2527 zend_string *publickey; in PHP_FUNCTION() local
2541 publickey = zend_string_alloc(crypto_kx_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
2542 memcpy(ZSTR_VAL(publickey), keypair + crypto_kx_SECRETKEYBYTES, in PHP_FUNCTION()
2544 ZSTR_VAL(publickey)[crypto_kx_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
2546 RETURN_STR(publickey); in PHP_FUNCTION()