Home
last modified time | relevance | path

Searched refs:siphash (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/crypto/openssl/test/
H A Dsiphash_internal_test.c171 SIPHASH siphash = { in test_siphash() local
199 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash()
200 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash()
202 SipHash_Update(&siphash, in, inlen); in test_siphash()
203 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen)) in test_siphash()
208 if (!TEST_true(SipHash_set_hash_size(&siphash, expectedlen)) in test_siphash()
209 || !TEST_true(SipHash_Init(&siphash, key, 0, 0))) in test_siphash()
211 SipHash_Update(&siphash, in, 1); in test_siphash()
212 SipHash_Update(&siphash, in + 1, inlen - 1); in test_siphash()
213 if (!TEST_true(SipHash_Final(&siphash, out, expectedlen))) in test_siphash()
[all …]
/freebsd/crypto/openssl/providers/implementations/macs/
H A Dsiphash_prov.c41 SIPHASH siphash; /* Siphash data */ member
92 return SipHash_hash_size(&ctx->siphash); in siphash_size()
102 ret = SipHash_Init(&ctx->siphash, key, crounds(ctx), drounds(ctx)); in siphash_setkey()
104 ctx->sipcopy = ctx->siphash; in siphash_setkey()
120 ctx->siphash = ctx->sipcopy; in siphash_init()
134 SipHash_Update(&ctx->siphash, data, datalen); in siphash_update()
148 return SipHash_Final(&ctx->siphash, out, hlen); in siphash_final()
206 || !SipHash_set_hash_size(&ctx->siphash, size) in siphash_set_params()
H A Dbuild.info24 IF[{- !$disabled{siphash} -}]
/freebsd/contrib/expat/lib/
H A Dsiphash.h134 struct siphash { struct
169 sip_round(struct siphash *H, const int rounds) { in sip_round()
193 static struct siphash *
194 sip24_init(struct siphash *H, const struct sipkey *key) { in sip24_init()
208 static struct siphash *
209 sip24_update(struct siphash *H, const void *src, size_t len) { in sip24_update()
233 sip24_final(struct siphash *H) { in sip24_final()
274 struct siphash state = SIPHASH_INITIALIZER; in siphash24()
H A DMakefile.am125 siphash.h \
/freebsd/crypto/openssl/ssl/
H A Dbuild.info33 IF[{- $disabled{siphash} -}]
34 SOURCE[../libssl]=../crypto/siphash/siphash.c
36 SHARED_SOURCE[../libssl]=../crypto/siphash/siphash.c
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSipHash.cpp30 siphash<2, 4>(In.data(), In.size(), K, Out); in getSipHash_2_4_64()
35 siphash<2, 4>(In.data(), In.size(), K, Out); in getSipHash_2_4_128()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/aarch64/
H A Demupac.cpp119 siphash<1, 3>(reinterpret_cast<uint8_t *>(&ptr), 8, emu_da_key, in __emupac_pacda_impl()
143 siphash<1, 3>(reinterpret_cast<uint8_t *>(&ptr_without_pac), 8, emu_da_key, in __emupac_autda_impl()
/freebsd/crypto/openssl/ssl/quic/
H A Dquic_lcidm.c73 SIPHASH siphash = { in lcid_hash() local
80 if (!SipHash_set_hash_size(&siphash, SIPHASH_MIN_DIGEST_SIZE)) in lcid_hash()
82 if (!SipHash_Init(&siphash, (uint8_t *)lcid_obj->hash_key, 0, 0)) in lcid_hash()
84 SipHash_Update(&siphash, lcid_obj->cid.id, lcid_obj->cid.id_len); in lcid_hash()
85 if (!SipHash_Final(&siphash, digest, SIPHASH_MIN_DIGEST_SIZE)) in lcid_hash()
/freebsd/crypto/openssl/providers/implementations/signature/
H A Dmac_legacy_sig.c92 MAC_NEWCTX(siphash, "SIPHASH")
240 MAC_SETTABLE_CTX_PARAMS(siphash, "SIPHASH")
263 MAC_SIGNATURE_FUNCTIONS(siphash)
/freebsd/sys/netpfil/pf/
H A Dpf_syncookies.c453 uint32_t siphash[2]; in pf_syncookie_mac() local
478 SipHash_Final((uint8_t *)&siphash, &ctx); in pf_syncookie_mac()
480 return (siphash[0] ^ siphash[1]); in pf_syncookie_mac()
/freebsd/crypto/openssl/crypto/siphash/
H A Dbuild.info3 siphash.c
/freebsd/secure/lib/libssl/
H A DMakefile34 SRCS+= siphash.c
90 ${LCRYPTO_SRC}/crypto/siphash \
/freebsd/contrib/unbound/util/
H A Dsiphash.h41 int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k,
H A Dedns.c49 #include "util/siphash.h"
166 v4?siphash(in, 20, secret, hash, 8):siphash(in, 32, secret, hash, 8); in edns_cookie_server_validate()
H A Dsiphash.c90 int siphash(const uint8_t *in, const size_t inlen, const uint8_t *k, in siphash() function
/freebsd/sys/modules/crypto/
H A DMakefile9 .PATH: ${SRCTOP}/sys/crypto/siphash
50 SRCS += siphash.c
/freebsd/crypto/openssl/util/
H A Dfix-includes.sed2 …f.h|dso_conf.h|engine.h|lhash.h|md32_common.h|objects.h|poly1305.h|sha.h|siphash.h|sm2err.h|sm2.h|…
/freebsd/lib/libunbound/
H A DMakefile25 rfc_1982.c rpz.c rrdef.c rrset.c rtt.c sbuffer.c siphash.c \
/freebsd/contrib/llvm-project/third-party/siphash/include/siphash/
H A DSipHash.h67 void siphash(const unsigned char *in, uint64_t inlen, in siphash() function
/freebsd/sys/contrib/libsodium/
H A DAUTHORS35 siphash Jean-Philippe Aumasson
/freebsd/sys/netinet/
H A Dtcp_fastopen.c562 uint64_t siphash; in tcp_fastopen_make_cookie() local
578 SipHash_Final((u_int8_t *)&siphash, &ctx); in tcp_fastopen_make_cookie()
580 return (siphash); in tcp_fastopen_make_cookie()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dsiphash.h81 static inline u64 siphash(const void *data, size_t len, in siphash() function
/freebsd/crypto/openssl/demos/
H A DREADME.txt57 siphash.c Demonstration of SIPHASH message authentication
/freebsd/crypto/openssl/crypto/
H A Dbuild.info6 siphash sm3 des aes rc2 rc4 rc5 idea aria bf cast camellia \

12