| /freebsd/crypto/openssl/test/ |
| H A D | tls13secretstest.c | 247 size_t hashsize; in test_secret() local 254 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashsize)) { in test_secret() 259 if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, in test_secret() 260 gensecret, hashsize, 1)) { in test_secret() 265 if (!TEST_mem_eq(gensecret, hashsize, ref_secret, hashsize)) in test_secret() 293 size_t hashsize; in test_handshake_secrets() local 331 hashsize = EVP_MD_get_size(ssl_handshake_md(s)); in test_handshake_secrets() 332 if (!TEST_size_t_eq(sizeof(client_hts), hashsize)) in test_handshake_secrets() 347 if (!TEST_size_t_eq(sizeof(server_hts), hashsize)) in test_handshake_secrets() 369 s->handshake_secret, hashsize, in test_handshake_secrets() [all …]
|
| /freebsd/sys/opencrypto/ |
| H A D | xform_sha2.c | 66 .hashsize = SHA2_224_HASH_LEN, 78 .hashsize = SHA2_256_HASH_LEN, 90 .hashsize = SHA2_384_HASH_LEN, 102 .hashsize = SHA2_512_HASH_LEN, 115 .hashsize = SHA2_224_HASH_LEN, 127 .hashsize = SHA2_256_HASH_LEN, 139 .hashsize = SHA2_384_HASH_LEN, 151 .hashsize = SHA2_512_HASH_LEN,
|
| H A D | xform_cbc_mac.c | 10 .hashsize = AES_CBC_MAC_HASH_LEN, 23 .hashsize = AES_CBC_MAC_HASH_LEN, 36 .hashsize = AES_CBC_MAC_HASH_LEN,
|
| H A D | xform_gmac.c | 70 .hashsize = AES_GMAC_HASH_LEN, 84 .hashsize = AES_GMAC_HASH_LEN, 98 .hashsize = AES_GMAC_HASH_LEN,
|
| H A D | cryptodev.c | 270 int hashsize; member 503 cse->hashsize = sop->maclen; in cse_create() 505 cse->hashsize = thash->hashsize; in cse_create() 507 cse->hashsize = txform->macsize; in cse_create() 653 if (cop->mac && cse->hashsize == 0) { in cryptodev_op() 670 cod = cod_alloc(cse, 0, cop->len + cse->hashsize); in cryptodev_op() 682 if (cse->hashsize) in cryptodev_op() 766 crypto_use_buf(crp, cod->buf, cop->len + cse->hashsize); in cryptodev_op() 768 crypto_use_output_buf(crp, cod->obuf, cop->len + cse->hashsize); in cryptodev_op() 799 cse->hashsize); in cryptodev_op() [all …]
|
| H A D | xform_rmd160.c | 62 .hashsize = RIPEMD160_HASH_LEN, 75 .hashsize = RIPEMD160_HASH_LEN,
|
| H A D | xform_sha1.c | 62 .hashsize = SHA1_HASH_LEN, 75 .hashsize = SHA1_HASH_LEN,
|
| /freebsd/crypto/krb5/src/lib/crypto/krb/ |
| H A D | enc_rc4.c | 100 return ktp->hash->hashsize + CONFOUNDERLENGTH; in krb5int_arcfour_crypto_length() 105 return ktp->hash->hashsize; in krb5int_arcfour_crypto_length() 152 header->data.length < hash->hashsize + CONFOUNDERLENGTH) in krb5int_arcfour_encrypt() 183 header->data.length = hash->hashsize + CONFOUNDERLENGTH; in krb5int_arcfour_encrypt() 184 confounder = make_data(header->data.data + hash->hashsize, in krb5int_arcfour_encrypt() 189 checksum = make_data(header->data.data, hash->hashsize); in krb5int_arcfour_encrypt() 192 header->data.length -= hash->hashsize; in krb5int_arcfour_encrypt() 193 header->data.data += hash->hashsize; in krb5int_arcfour_encrypt() 229 header->data.length != hash->hashsize + CONFOUNDERLENGTH) in krb5int_arcfour_decrypt() 239 ret = alloc_data(&comp_checksum, hash->hashsize); in krb5int_arcfour_decrypt() [all …]
|
| H A D | prf_dk.c | 41 ret = alloc_data(&cksum, hash->hashsize); in krb5int_dk_prf() 58 iov.data.length = (hash->hashsize / enc->block_size) * enc->block_size; in krb5int_dk_prf() 67 zapfree(cksum.data, hash->hashsize); in krb5int_dk_prf()
|
| H A D | enc_dk_hmac.c | 43 return ktp->hash->hashsize; in krb5int_dk_crypto_length() 121 cksum = k5alloc(hash->hashsize, &ret); in krb5int_dk_encrypt() 153 d2.length = hash->hashsize; in krb5int_dk_encrypt() 222 cksum = k5alloc(hash->hashsize, &ret); in krb5int_dk_decrypt() 251 d1.length = hash->hashsize; /* non-truncated length */ in krb5int_dk_decrypt()
|
| H A D | checksum_hmac_md5.c | 53 ret = alloc_data(&ds, ctp->hash->hashsize); in krb5int_hmacmd5_checksum() 77 ret = alloc_data(&hashval, ctp->hash->hashsize); in krb5int_hmacmd5_checksum()
|
| H A D | enc_etm.c | 46 return ktp->hash->hashsize / 2; in krb5int_aes2_crypto_length() 76 ret = alloc_data(&ki, ktp->hash->hashsize / 2); in derive_keys() 122 ret = alloc_data(out, ktp->hash->hashsize); in hmac_ivec_data()
|
| /freebsd/crypto/krb5/src/lib/crypto/builtin/ |
| H A D | hmac.c | 66 if (output->length < hash->hashsize) in krb5int_hmac_keyblock() 73 ihash = k5alloc(hash->hashsize, &ret); in krb5int_hmac_keyblock() 89 hashout = make_data(ihash, hash->hashsize); in krb5int_hmac_keyblock() 103 ohash_iov[1].data = make_data(ihash, hash->hashsize); in krb5int_hmac_keyblock() 104 output->length = hash->hashsize; in krb5int_hmac_keyblock() 111 zapfree(ihash, hash->hashsize); in krb5int_hmac_keyblock()
|
| H A D | pbkdf2.c | 143 size_t hlen = hash->hashsize; in pbkdf2() 201 assert(hash->hashsize <= sizeof(tmp)); in krb5int_pbkdf2_hmac() 203 d = make_data(tmp, hash->hashsize); in krb5int_pbkdf2_hmac()
|
| /freebsd/lib/libc/iconv/ |
| H A D | citrus_hash.h | 35 #define _CITRUS_HASH_HEAD(headname, type, hashsize) \ argument 37 LIST_HEAD(, type) chh_table[hashsize]; \ 39 #define _CITRUS_HASH_INIT(head, hashsize) \ argument 43 for (_ch_loop = 0; _ch_loop < hashsize; _ch_loop++) \
|
| H A D | citrus_hash.c | 44 _citrus_string_hash_func(const char *key, int hashsize) in _citrus_string_hash_func() argument 50 return ((int)(_db_hash_std(&r) % (uint32_t)hashsize)); in _citrus_string_hash_func()
|
| /freebsd/sys/netinet/ |
| H A D | tcp_hostcache.c | 125 u_int hashsize; member 169 SYSCTL_UINT(_net_inet_tcp_hostcache, OID_AUTO, hashsize, CTLFLAG_VNET | CTLFLAG_RDTUN, 170 &VNET_NAME(tcp_hostcache.hashsize), 0, 232 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; in tcp_hc_init() 239 &V_tcp_hostcache.hashsize); in tcp_hc_init() 240 if (!powerof2(V_tcp_hostcache.hashsize)) { in tcp_hc_init() 242 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; /* default */ in tcp_hc_init() 244 V_tcp_hostcache.hashmask = V_tcp_hostcache.hashsize - 1; in tcp_hc_init() 249 cache_limit = V_tcp_hostcache.hashsize * V_tcp_hostcache.bucket_limit; in tcp_hc_init() 260 malloc(V_tcp_hostcache.hashsize * sizeof(struct hc_head), in tcp_hc_init() [all …]
|
| /freebsd/crypto/krb5/src/lib/crypto/openssl/ |
| H A D | hmac.c | 139 if (output->length < hash->hashsize) in krb5int_hmac_keyblock() 186 size_t hashsize, blocksize; in krb5int_hmac_keyblock() local 188 hashsize = hash->hashsize; in krb5int_hmac_keyblock() 193 if (output->length < hashsize) in krb5int_hmac_keyblock()
|
| /freebsd/crypto/krb5/src/lib/crypto/crypto_tests/ |
| H A D | t_hmac.c | 90 size_t blocksize, hashsize; in hmac1() local 98 hashsize = h->hashsize; in hmac1() 99 if (hashsize > sizeof(tmp)) in hmac1() 104 d = make_data(tmp, hashsize); in hmac1()
|
| /freebsd/sys/crypto/openssl/ |
| H A D | ossl_sha256.c | 99 .hashsize = SHA2_224_HASH_LEN, 110 .hashsize = SHA2_256_HASH_LEN,
|
| /freebsd/crypto/openssl/ssl/ |
| H A D | tls13_enc.c | 858 unsigned int hashsize, datalen; in tls13_export_keying_material() local 869 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material() 874 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material() 876 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material() 898 unsigned int hashsize, datalen; in tls13_export_keying_material_early() local 931 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material_early() 936 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material_early() 938 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material_early()
|
| /freebsd/sys/crypto/via/ |
| H A D | padlock_hash.c | 83 .hashsize = SHA1_HASH_LEN, 95 .hashsize = SHA2_256_HASH_LEN, 301 axf->Update(&ctx, hash, axf->hashsize); in padlock_authcompute() 367 ses->ses_mlen = ses->ses_axf->hashsize; in padlock_hash_setup()
|
| /freebsd/sys/dev/glxsb/ |
| H A D | glxsb_hash.c | 84 axf->Update(&ctx, hash, axf->hashsize); in glxsb_authcompute() 111 ses->ses_mlen = ses->ses_axf->hashsize; in glxsb_hash_setup()
|
| /freebsd/contrib/ncurses/include/ |
| H A D | Makefile.in | 89 hashsize.h \ 132 hashsize.h: $(CAPLIST) \
|
| /freebsd/crypto/openssl/ssl/statem/ |
| H A D | extensions.c | 1472 size_t bindersize, labelsize, hashsize; in tls_psk_do_binder() local 1483 hashsize = (size_t)hashsizei; in tls_psk_do_binder() 1532 hashsize, binderkey, hashsize, 1)) { in tls_psk_do_binder() 1538 if (!tls13_derive_finishedkey(s, md, binderkey, finishedkey, hashsize)) { in tls_psk_do_binder() 1597 hashsize); in tls_psk_do_binder() 1606 bindersize = hashsize; in tls_psk_do_binder() 1610 || EVP_DigestSignUpdate(mctx, hash, hashsize) <= 0 in tls_psk_do_binder() 1612 || bindersize != hashsize) { in tls_psk_do_binder() 1621 ret = (CRYPTO_memcmp(binderin, binderout, hashsize) == 0); in tls_psk_do_binder()
|