| /src/crypto/external/bsd/openssl/dist/test/ |
| siphash_internal_test.c | 10 /* Internal tests for the siphash module */ 17 #include "crypto/siphash.h" 32 * Test of siphash internal functions 36 /* From C reference: https://131002.net/siphash/ */ 171 SIPHASH siphash = { 0, }; local 198 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) 199 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) 201 SipHash_Update(&siphash, in, inlen); 202 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen) 259 SIPHASH siphash = { 0, }; local [all...] |
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| siphash_internal_test.c | 10 /* Internal tests for the siphash module */ 17 #include "crypto/siphash.h" 18 #include "../crypto/siphash/siphash_local.h" 33 * Test of siphash internal functions 37 /* From C reference: https://131002.net/siphash/ */ 172 SIPHASH siphash = { 0, }; local 199 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) 200 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) 202 SipHash_Update(&siphash, in, inlen) 260 SIPHASH siphash = { 0, }; local [all...] |
| /src/external/bsd/nsd/dist/ |
| siphash.c | 2 SipHash reference C implementation 22 /* default: SipHash-2-4 */ 78 int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k, function
|
| /src/external/bsd/unbound/dist/util/ |
| siphash.c | 2 SipHash reference C implementation 32 #include "util/siphash.h" 34 /* default: SipHash-2-4 */ 90 int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k, function
|
| /src/crypto/external/apache2/openssl/dist/test/ |
| siphash_internal_test.c | 10 /* Internal tests for the siphash module */ 17 #include "crypto/siphash.h" 32 * Test of siphash internal functions 36 /* From C reference: https://131002.net/siphash/ */ 171 SIPHASH siphash = { local 199 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) 200 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) 202 SipHash_Update(&siphash, in, inlen); 203 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen) 260 SIPHASH siphash = { local [all...] |
| /src/crypto/external/apache2/openssl/dist/providers/implementations/macs/ |
| siphash_prov.c | 18 #include "crypto/siphash.h" 41 SIPHASH siphash; /* Siphash data */ member in struct:siphash_data_st 42 SIPHASH sipcopy; /* Siphash data copy for reinitialization */ 92 return SipHash_hash_size(&ctx->siphash); 102 ret = SipHash_Init(&ctx->siphash, key, crounds(ctx), drounds(ctx)); 104 ctx->sipcopy = ctx->siphash; 120 ctx->siphash = ctx->sipcopy [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/macs/ |
| siphash_prov.c | 18 #include "crypto/siphash.h" 41 SIPHASH siphash; /* Siphash data */ member in struct:siphash_data_st 42 SIPHASH sipcopy; /* Siphash data copy for reinitialization */ 92 return SipHash_hash_size(&ctx->siphash); 102 ret = SipHash_Init(&ctx->siphash, key, crounds(ctx), drounds(ctx)); 104 ctx->sipcopy = ctx->siphash; 120 ctx->siphash = ctx->sipcopy [all...] |
| /src/external/mit/expat/dist/lib/ |
| siphash.h | 2 * siphash.h - SipHash-2-4 in a single header file 9 * 1. https://www.131002.net/siphash/siphash24.c 10 * 2. https://www.131002.net/siphash/ 52 * SipHash-2-4 takes as input two 64-bit words as the key, some number of 55 * representing the key, and a struct siphash for representing the hash 70 * struct siphash state; 131 struct siphash { struct 136 }; /* struct siphash */ 166 sip_round(struct siphash *H, const int rounds) [all...] |
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_lcidm.c | 14 #include "crypto/siphash.h" 62 uint64_t hash_key[2]; /* random key for siphash */ 73 SIPHASH siphash = { local 79 /* Use a supported SipHash digest size (8 or 16); 8 is sufficient here. */ 80 if (!SipHash_set_hash_size(&siphash, SIPHASH_MIN_DIGEST_SIZE)) 82 if (!SipHash_Init(&siphash, (uint8_t *)lcid_obj->hash_key, 0, 0)) 84 SipHash_Update(&siphash, lcid_obj->cid.id, lcid_obj->cid.id_len); 85 if (!SipHash_Final(&siphash, digest, SIPHASH_MIN_DIGEST_SIZE)) 89 * Truncate the 64-bit SipHash digest into an unsigned long [all...] |