Searched refs:crypto_box_PUBLICKEYBYTES (Results 1 – 12 of 12) sorted by relevance
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_box/ |
H A D | crypto_box_seal.c | 16 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 D | crypto_box.c | 13 return crypto_box_PUBLICKEYBYTES; in crypto_box_publickeybytes()
|
/freebsd/contrib/unbound/dnscrypt/ |
H A D | dnscrypt.c | 32 (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 D | dnscrypt.h | 32 …(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 D | cert.h | 24 uint8_t server_publickey[crypto_box_PUBLICKEYBYTES];
|
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | box7.c | 6 static unsigned char alicepk[crypto_box_PUBLICKEYBYTES]; 8 static unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
|
H A D | box8.c | 6 static unsigned char alicepk[crypto_box_PUBLICKEYBYTES]; 8 static unsigned char bobpk[crypto_box_PUBLICKEYBYTES];
|
H A D | box_easy2.c | 5 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 D | box2.c | 17 static const unsigned char small_order_p[crypto_box_PUBLICKEYBYTES] = {
|
H A D | box_seal.c | 8 unsigned char pk[crypto_box_PUBLICKEYBYTES]; in main()
|
H A D | box.c | 17 static const unsigned char small_order_p[crypto_box_PUBLICKEYBYTES] = {
|
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/ |
H A D | crypto_box.h | 27 #define crypto_box_PUBLICKEYBYTES crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES macro 122 #define crypto_box_SEALBYTES (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES)
|