Lines Matching refs:crypto_kx_SECRETKEYBYTES
221 # define crypto_kx_SECRETKEYBYTES 32 in PHP_MINIT_FUNCTION() macro
230 crypto_kx_SECRETKEYBYTES, CONST_CS | CONST_PERSISTENT); in PHP_MINIT_FUNCTION()
232 crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES, in PHP_MINIT_FUNCTION()
2467 (void) sizeof(int[crypto_scalarmult_SCALARBYTES == crypto_kx_SECRETKEYBYTES ? 1 : -1]); in PHP_FUNCTION()
2468 keypair = zend_string_alloc(crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
2470 pk = sk + crypto_kx_SECRETKEYBYTES; in PHP_FUNCTION()
2471 crypto_generichash(sk, crypto_kx_SECRETKEYBYTES, in PHP_FUNCTION()
2477 ZSTR_VAL(keypair)[crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES] = 0; in PHP_FUNCTION()
2490 keypair = zend_string_alloc(crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES, 0); in PHP_FUNCTION()
2492 pk = sk + crypto_kx_SECRETKEYBYTES; in PHP_FUNCTION()
2493 randombytes_buf(sk, crypto_kx_SECRETKEYBYTES); in PHP_FUNCTION()
2498 ZSTR_VAL(keypair)[crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES] = 0; in PHP_FUNCTION()
2514 crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES) { in PHP_FUNCTION()
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()
2537 crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES) { in PHP_FUNCTION()
2542 memcpy(ZSTR_VAL(publickey), keypair + crypto_kx_SECRETKEYBYTES, in PHP_FUNCTION()
2567 if (keypair_len != crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES) { in PHP_FUNCTION()
2576 client_pk = &keypair[crypto_kx_SECRETKEYBYTES]; in PHP_FUNCTION()
2578 (void) sizeof(int[crypto_scalarmult_SCALARBYTES == crypto_kx_SECRETKEYBYTES ? 1 : -1]); in PHP_FUNCTION()
2617 if (keypair_len != crypto_kx_SECRETKEYBYTES + crypto_kx_PUBLICKEYBYTES) { in PHP_FUNCTION()
2626 server_pk = &keypair[crypto_kx_SECRETKEYBYTES]; in PHP_FUNCTION()
2628 (void) sizeof(int[crypto_scalarmult_SCALARBYTES == crypto_kx_SECRETKEYBYTES ? 1 : -1]); in PHP_FUNCTION()