Lines Matching refs:secretkey
810 char *secretkey; in PHP_FUNCTION() local
816 &secretkey, &secretkey_len, in PHP_FUNCTION()
831 memcpy(ZSTR_VAL(keypair), secretkey, crypto_box_SECRETKEYBYTES); in PHP_FUNCTION()
841 zend_string *secretkey; in PHP_FUNCTION() local
855 secretkey = zend_string_alloc(crypto_box_SECRETKEYBYTES, 0); in PHP_FUNCTION()
856 memcpy(ZSTR_VAL(secretkey), keypair, crypto_box_SECRETKEYBYTES); in PHP_FUNCTION()
857 ZSTR_VAL(secretkey)[crypto_box_SECRETKEYBYTES] = 0; in PHP_FUNCTION() local
859 RETURN_STR(secretkey); in PHP_FUNCTION()
889 unsigned char *secretkey; in PHP_FUNCTION() local
893 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
906 crypto_scalarmult_base((unsigned char *) ZSTR_VAL(publickey), secretkey); in PHP_FUNCTION()
919 unsigned char *secretkey; in PHP_FUNCTION() local
939 secretkey = keypair; in PHP_FUNCTION()
948 nonce, publickey, secretkey) != 0) { in PHP_FUNCTION()
965 unsigned char *secretkey; in PHP_FUNCTION() local
985 secretkey = keypair; in PHP_FUNCTION()
993 nonce, publickey, secretkey) != 0) { in PHP_FUNCTION()
1042 unsigned char *secretkey; in PHP_FUNCTION() local
1056 secretkey = keypair; in PHP_FUNCTION()
1064 publickey, secretkey) != 0) { in PHP_FUNCTION()
1130 char *secretkey; in PHP_FUNCTION() local
1136 &secretkey, &secretkey_len, in PHP_FUNCTION()
1151 memcpy(ZSTR_VAL(keypair), secretkey, crypto_sign_SECRETKEYBYTES); in PHP_FUNCTION()
1162 char *secretkey; in PHP_FUNCTION() local
1166 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
1177 (const unsigned char *) secretkey) != 0) { in PHP_FUNCTION()
1189 zend_string *secretkey; in PHP_FUNCTION() local
1203 secretkey = zend_string_alloc(crypto_sign_SECRETKEYBYTES, 0); in PHP_FUNCTION()
1204 memcpy(ZSTR_VAL(secretkey), keypair, crypto_sign_SECRETKEYBYTES); in PHP_FUNCTION()
1205 ZSTR_VAL(secretkey)[crypto_sign_SECRETKEYBYTES] = 0; in PHP_FUNCTION() local
1207 RETURN_STR(secretkey); in PHP_FUNCTION()
1238 unsigned char *secretkey; in PHP_FUNCTION() local
1246 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
1262 (unsigned long long) msg_len, secretkey) != 0) { in PHP_FUNCTION()
1325 unsigned char *secretkey; in PHP_FUNCTION() local
1332 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
1344 (unsigned long long) msg_len, secretkey) != 0) { in PHP_FUNCTION()
1812 unsigned char *secretkey; in PHP_FUNCTION() local
1824 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
1849 ad, (unsigned long long) ad_len, NULL, npub, secretkey) != 0) { in PHP_FUNCTION()
1872 unsigned char *secretkey; in PHP_FUNCTION() local
1884 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
1912 ad, (unsigned long long) ad_len, npub, secretkey) != 0) { in PHP_FUNCTION()
1934 unsigned char *secretkey; in PHP_FUNCTION() local
1946 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
1967 ad, (unsigned long long) ad_len, NULL, npub, secretkey) != 0) { in PHP_FUNCTION()
1990 unsigned char *secretkey; in PHP_FUNCTION() local
2002 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
2026 ad, (unsigned long long) ad_len, npub, secretkey) != 0) { in PHP_FUNCTION()
2047 unsigned char *secretkey; in PHP_FUNCTION() local
2059 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
2084 ad, (unsigned long long) ad_len, NULL, npub, secretkey) != 0) { in PHP_FUNCTION()
2107 unsigned char *secretkey; in PHP_FUNCTION() local
2119 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
2148 ad, (unsigned long long) ad_len, npub, secretkey) != 0) { in PHP_FUNCTION()
2170 unsigned char *secretkey; in PHP_FUNCTION() local
2182 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
2203 ad, (unsigned long long) ad_len, NULL, npub, secretkey) != 0) { in PHP_FUNCTION()
2226 unsigned char *secretkey; in PHP_FUNCTION() local
2238 &secretkey, &secretkey_len) == FAILURE) { in PHP_FUNCTION()
2267 ad, (unsigned long long) ad_len, npub, secretkey) != 0) { in PHP_FUNCTION()
2504 zend_string *secretkey; in PHP_FUNCTION() local
2518 secretkey = zend_string_alloc(crypto_kx_SECRETKEYBYTES, 0); in PHP_FUNCTION()
2519 memcpy(ZSTR_VAL(secretkey), keypair, crypto_kx_SECRETKEYBYTES); in PHP_FUNCTION()
2520 ZSTR_VAL(secretkey)[crypto_kx_SECRETKEYBYTES] = 0; in PHP_FUNCTION() local
2522 RETURN_STR(secretkey); in PHP_FUNCTION()