Home
last modified time | relevance | path

Searched refs:crypto_box_PUBLICKEYBYTES (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_box/
H A Dcrypto_box_seal.c16 crypto_generichash_update(&st, pk1, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
17 crypto_generichash_update(&st, pk2, crypto_box_PUBLICKEYBYTES); in _crypto_box_seal_nonce()
28 unsigned char epk[crypto_box_PUBLICKEYBYTES]; in crypto_box_seal()
35 memcpy(c, epk, crypto_box_PUBLICKEYBYTES); in crypto_box_seal()
37 ret = crypto_box_easy(c + crypto_box_PUBLICKEYBYTES, m, mlen, in crypto_box_seal()
58 COMPILER_ASSERT(crypto_box_PUBLICKEYBYTES < crypto_box_SEALBYTES); in crypto_box_seal_open()
59 return crypto_box_open_easy(m, c + crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
60 clen - crypto_box_PUBLICKEYBYTES, in crypto_box_seal_open()
H A Dcrypto_box.c13 return crypto_box_PUBLICKEYBYTES; in crypto_box_publickeybytes()
/freebsd/contrib/unbound/dnscrypt/
H A Ddnscrypt.c32 (DNSCRYPT_MAGIC_HEADER_LEN + crypto_box_PUBLICKEYBYTES + \
53 (1 + crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES)
70 uint8_t client_publickey[crypto_box_PUBLICKEYBYTES];
92 memcpy(key + 1, pk, crypto_box_PUBLICKEYBYTES); in dnsc_shared_secrets_cache_key()
93 memcpy(key + 1 + crypto_box_PUBLICKEYBYTES, sk, crypto_box_SECRETKEYBYTES); in dnsc_shared_secrets_cache_key()
161 const uint8_t pk[crypto_box_PUBLICKEYBYTES]) in dnsc_nonce_cache_key_hash() argument
166 return hashlittle(pk, crypto_box_PUBLICKEYBYTES, h); in dnsc_nonce_cache_key_hash()
182 const uint8_t pk[crypto_box_PUBLICKEYBYTES], in dnsc_nonce_cache_insert() argument
194 memcpy(k->client_publickey, pk, crypto_box_PUBLICKEYBYTES); in dnsc_nonce_cache_insert()
218 const uint8_t pk[crypto_box_PUBLICKEYBYTES], in dnsc_nonces_lookup() argument
[all …]
H A Ddnscrypt.h32 …(DNSCRYPT_MAGIC_HEADER_LEN + crypto_box_PUBLICKEYBYTES + crypto_box_HALF_NONCEBYTES + crypto_box_M…
45 uint8_t crypt_publickey[crypto_box_PUBLICKEYBYTES];
86 uint8_t publickey[crypto_box_PUBLICKEYBYTES];
H A Dcert.h24 uint8_t server_publickey[crypto_box_PUBLICKEYBYTES];
/freebsd/sys/contrib/libsodium/test/default/
H A Dbox7.c6 static unsigned char alicepk[crypto_box_PUBLICKEYBYTES];
8 static unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
H A Dbox8.c6 static unsigned char alicepk[crypto_box_PUBLICKEYBYTES];
8 static unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
H A Dbox_easy2.c5 static const unsigned char small_order_p[crypto_box_PUBLICKEYBYTES] = {
37 alicepk = (unsigned char *) sodium_malloc(crypto_box_PUBLICKEYBYTES); in main()
39 bobpk = (unsigned char *) sodium_malloc(crypto_box_PUBLICKEYBYTES); in main()
H A Dbox2.c17 static const unsigned char small_order_p[crypto_box_PUBLICKEYBYTES] = {
H A Dbox_seal.c8 unsigned char pk[crypto_box_PUBLICKEYBYTES]; in main()
H A Dbox.c17 static const unsigned char small_order_p[crypto_box_PUBLICKEYBYTES] = {
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dcrypto_box.h27 #define crypto_box_PUBLICKEYBYTES crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES macro
122 #define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES)