Lines Matching refs:publickey
1097 char *publickey; in PHP_FUNCTION() local
1105 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1124 memcpy(ZSTR_VAL(keypair) + crypto_box_SECRETKEYBYTES, publickey, in PHP_FUNCTION()
1158 zend_string *publickey; in PHP_FUNCTION() local
1174 publickey = zend_string_alloc(crypto_box_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
1175 memcpy(ZSTR_VAL(publickey), keypair + crypto_box_SECRETKEYBYTES, in PHP_FUNCTION()
1177 ZSTR_VAL(publickey)[crypto_box_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
1179 RETURN_STR(publickey); in PHP_FUNCTION()
1184 zend_string *publickey; in PHP_FUNCTION() local
1199 publickey = zend_string_alloc(crypto_box_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
1204 crypto_scalarmult_base((unsigned char *) ZSTR_VAL(publickey), secretkey); in PHP_FUNCTION()
1205 ZSTR_VAL(publickey)[crypto_box_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
1207 RETURN_STR(publickey); in PHP_FUNCTION()
1216 unsigned char *publickey; in PHP_FUNCTION() local
1242 publickey = keypair + crypto_box_SECRETKEYBYTES; in PHP_FUNCTION()
1250 nonce, publickey, secretkey) != 0) { in PHP_FUNCTION()
1266 unsigned char *publickey; in PHP_FUNCTION() local
1292 publickey = keypair + crypto_box_SECRETKEYBYTES; in PHP_FUNCTION()
1299 nonce, publickey, secretkey) != 0) { in PHP_FUNCTION()
1312 unsigned char *publickey; in PHP_FUNCTION() local
1318 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1334 (unsigned long long) msg_len, publickey) != 0) { in PHP_FUNCTION()
1349 unsigned char *publickey; in PHP_FUNCTION() local
1367 publickey = keypair + crypto_box_SECRETKEYBYTES; in PHP_FUNCTION()
1374 publickey, secretkey) != 0) { in PHP_FUNCTION()
1441 char *publickey; in PHP_FUNCTION() local
1449 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1468 memcpy(ZSTR_VAL(keypair) + crypto_sign_SECRETKEYBYTES, publickey, in PHP_FUNCTION()
1477 zend_string *publickey; in PHP_FUNCTION() local
1492 publickey = zend_string_alloc(crypto_sign_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
1494 if (crypto_sign_ed25519_sk_to_pk((unsigned char *) ZSTR_VAL(publickey), in PHP_FUNCTION()
1500 ZSTR_VAL(publickey)[crypto_sign_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
1502 RETURN_STR(publickey); in PHP_FUNCTION()
1532 zend_string *publickey; in PHP_FUNCTION() local
1548 publickey = zend_string_alloc(crypto_sign_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
1549 memcpy(ZSTR_VAL(publickey), keypair + crypto_sign_SECRETKEYBYTES, in PHP_FUNCTION()
1551 ZSTR_VAL(publickey)[crypto_sign_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
1553 RETURN_STR(publickey); in PHP_FUNCTION()
1606 unsigned char *publickey; in PHP_FUNCTION() local
1614 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1632 publickey) != 0) { in PHP_FUNCTION()
1691 unsigned char *publickey; in PHP_FUNCTION() local
1700 &publickey, &publickey_len) == FAILURE) { in PHP_FUNCTION()
1718 publickey) != 0) { in PHP_FUNCTION()
2917 zend_string *publickey; in PHP_FUNCTION() local
2933 publickey = zend_string_alloc(crypto_kx_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
2934 memcpy(ZSTR_VAL(publickey), keypair + crypto_kx_SECRETKEYBYTES, in PHP_FUNCTION()
2936 ZSTR_VAL(publickey)[crypto_kx_PUBLICKEYBYTES] = 0; in PHP_FUNCTION() local
2938 RETURN_STR(publickey); in PHP_FUNCTION()