/freebsd/crypto/libecc/src/tests/ |
H A D | ed25519_test_vectors.h | 24 .hash_type = SHA512, 47 .hash_type = SHA512, 70 .hash_type = SHA512, 93 .hash_type = SHA512, 116 .hash_type = SHA512, 139 .hash_type = SHA512, 162 .hash_type = SHA512, 185 .hash_type = SHA512, 208 .hash_type = SHA512, 231 .hash_type = SHA512, [all …]
|
H A D | decdsa_test_vectors.h | 34 .hash_type = SHA224, 69 .hash_type = SHA256, 104 .hash_type = SHA384, 139 .hash_type = SHA512, 174 .hash_type = SHA224, 209 .hash_type = SHA256, 244 .hash_type = SHA384, 279 .hash_type = SHA512, 317 .hash_type = SHA224, 355 .hash_type = SHA256, [all …]
|
H A D | ed448_test_vectors.h | 27 .hash_type = SHAKE256, 50 .hash_type = SHAKE256, 73 .hash_type = SHAKE256, 99 .hash_type = SHAKE256, 125 .hash_type = SHAKE256, 151 .hash_type = SHAKE256, 177 .hash_type = SHAKE256, 266 .hash_type = SHAKE256, 295 .hash_type = SHAKE256,
|
H A D | ec_self_tests_core.h | 37 hash_alg_type hash_type; member 176 .hash_type = SHA3_224, 244 .hash_type = SHA3_256, 312 .hash_type = SHA3_512, 388 .hash_type = SHA3_384, 475 .hash_type = SHA3_512, 535 .hash_type = SHA224, 601 .hash_type = SHA224, 667 .hash_type = SHA256, 734 .hash_type = SHA512, [all …]
|
H A D | dbign_test_vectors.h | 34 .hash_type = BELT_HASH, 64 .hash_type = BELT_HASH, 94 .hash_type = BELT_HASH, 124 .hash_type = BASH384, 151 .hash_type = BASH384, 182 .hash_type = BASH512, 209 .hash_type = BASH512,
|
H A D | bign_test_vectors.h | 53 .hash_type = BELT_HASH, 104 .hash_type = BELT_HASH, 152 .hash_type = BELT_HASH, 203 .hash_type = BELT_HASH, 259 .hash_type = BASH384, 313 .hash_type = BASH384, 370 .hash_type = BASH512, 426 .hash_type = BASH512,
|
H A D | ed25519ctx_test_vectors.h | 33 .hash_type = SHA512, 62 .hash_type = SHA512, 91 .hash_type = SHA512, 120 .hash_type = SHA512,
|
H A D | ec_self_tests_core.c | 126 ec_alg_type sig_type, hash_alg_type hash_type, const u8 *adata, u16 adata_len) in random_split_ec_sign() argument 139 ret = _ec_sign_init(&ctx, key_pair, rand, sig_type, hash_type, adata, adata_len); in random_split_ec_sign() 175 ec_alg_type sig_type, hash_alg_type hash_type, const u8 *adata, u16 adata_len) in random_split_ec_verify() argument 183 ret = ec_verify_init(&ctx, pub_key, sig, siglen, sig_type, hash_type, adata, adata_len); in random_split_ec_verify() 270 ret = ec_get_sig_len(¶ms, c->sig_type, c->hash_type, in ec_import_export_test() 291 c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len); in ec_import_export_test() 303 c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len); in ec_import_export_test() 310 c->nn_random, c->sig_type, c->hash_type, c->adata, c->adata_len); in ec_import_export_test() 337 c->sig_type, c->hash_type, c->adata, c->adata_len); in ec_import_export_test() 348 c->sig_type, c->hash_type, c->adata, c->adata_len); in ec_import_export_test() [all …]
|
H A D | bip0340_test_vectors.h | 50 .hash_type = SHA256, 95 .hash_type = SHA256, 140 .hash_type = SHA256, 185 .hash_type = SHA256,
|
H A D | ec_utils.c | 171 const char *hash_name, hash_alg_type * hash_type) in string_to_params() argument 210 if (hash_type != NULL) { in string_to_params() 219 *hash_type = hm->type; in string_to_params() 372 ec_alg_type sig_type, hash_alg_type hash_type, in store_sig() argument 439 sig_type, hash_type, curve_name); in store_sig() 662 hash_alg_type hash_type; in sign_bin_file() local 683 &hash_type)) { in sign_bin_file() 727 ret = ec_get_sig_len(¶ms, sig_type, hash_type, &siglen); in sign_bin_file() 757 ret = ec_sign_init(&sig_ctx, &key_pair, sig_type, hash_type, (const u8*)adata, adata_len); in sign_bin_file() 898 …ret = ec_sign(sig, siglen, &key_pair, allocated_buff, (u32)offset, sig_type, hash_type, (const u8*… in sign_bin_file() [all …]
|
H A D | ed448ph_test_vectors.h | 30 .hash_type = SHAKE256, 59 .hash_type = SHAKE256,
|
/freebsd/crypto/libecc/include/libecc/sig/ |
H A D | sig_algs.h | 45 hash_alg_type hash_type, u8 *siglen); 52 ec_alg_type sig_type, hash_alg_type hash_type, 56 ec_alg_type sig_type, hash_alg_type hash_type, 66 ec_alg_type sig_type, hash_alg_type hash_type, 71 ec_alg_type sig_type, hash_alg_type hash_type, 78 hash_alg_type hash_type, const u8 *adata, u16 adata_len); 87 ec_alg_type sig_type, hash_alg_type hash_type, 92 hash_alg_type hash_type, const u8 **adata, const u16 *adata_len, 100 hash_alg_type * hash_type, 106 hash_alg_type hash_type,
|
H A D | bip0340.h | 49 ec_alg_type sig_type, hash_alg_type hash_type, 69 hash_alg_type hash_type, const u8 **adata, const u16 *adata_len,
|
/freebsd/crypto/libecc/src/examples/hash/ |
H A D | hash.c | 14 …tic int get_libecc_hash(gen_hash_alg_type gen_hash_type, hash_alg_type *hash_type, const hash_mapp… in get_libecc_hash() argument 19 MUST_HAVE((hash_type != NULL) && (hm != NULL), ret, err); in get_libecc_hash() 149 (*hash_type) = htype; in get_libecc_hash() 163 if(ret && (hash_type != NULL)){ in get_libecc_hash() 164 (*hash_type) = UNKNOWN_HASH_ALG; in get_libecc_hash() 223 hash_alg_type hash_type; in gen_hash_get_hash_sizes() local 224 … ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, hlen, block_size); EG(ret, err); in gen_hash_get_hash_sizes() 277 hash_alg_type hash_type; in gen_hash_hfunc_scattered() local 279 ret = get_libecc_hash(gen_hash_type, &hash_type, &hm, &hlen, &block_size); EG(ret, err); in gen_hash_hfunc_scattered() 348 hash_alg_type hash_type; in gen_hash_init() local [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_chained_origin_depot.cpp | 25 using hash_type = u32; typedef 32 bool eq(hash_type hash, const args_type &args) const; 36 static hash_type hash(const args_type &args); 40 void store(u32 id, const args_type &args, hash_type other_hash); 63 bool ChainedOriginDepotNode::eq(hash_type hash, const args_type &args) const { in eq() 80 ChainedOriginDepotNode::hash_type ChainedOriginDepotNode::hash( in hash() 109 hash_type other_hash) { in store()
|
H A D | sanitizer_stackdepot.cpp | 25 using hash_type = u64; typedef 26 hash_type stack_hash; 33 bool eq(hash_type hash, const args_type &args) const { in eq() 37 static hash_type hash(const args_type &args) { in hash() 46 void store(u32 id, const args_type &args, hash_type hash); 191 void StackDepotNode::store(u32 id, const args_type &args, hash_type hash) { in store()
|
H A D | sanitizer_stackdepotbase.h | 38 typedef typename Node::hash_type hash_type; typedef 66 u32 find(u32 s, args_type args, hash_type hash) const; 80 u32 s, args_type args, hash_type hash) const { in find() 121 hash_type h = Node::hash(args); in Put()
|
/freebsd/crypto/libecc/src/sig/ |
H A D | sig_algs.c | 250 hash_alg_type hash_type, u8 *siglen) in ec_get_sig_len() argument 260 ret = get_hash_sizes(hash_type, &digest_size, &block_size); EG(ret, err); in ec_get_sig_len() 297 ec_alg_type sig_type, hash_alg_type hash_type, in _ec_sign_init() argument 313 if (hm->type == hash_type) { in _ec_sign_init() 389 ec_alg_type sig_type, hash_alg_type hash_type, in ec_sign_init() argument 392 return _ec_sign_init(ctx, key_pair, NULL, sig_type, hash_type, in ec_sign_init() 457 ec_alg_type sig_type, hash_alg_type hash_type, in generic_ec_sign() argument 464 hash_type, adata, adata_len); EG(ret, err); in generic_ec_sign() 476 ec_alg_type sig_type, hash_alg_type hash_type, in _ec_sign() argument 486 sig_type, hash_type, adata, adata_len); in _ec_sign() [all …]
|
H A D | eddsa.c | 129 hash_alg_type hash_type = UNKNOWN_HASH_ALG; in get_eddsa_hash_type() local 136 hash_type = SHA512; in get_eddsa_hash_type() 143 hash_type = SHAKE256; in get_eddsa_hash_type() 148 hash_type = UNKNOWN_HASH_ALG; in get_eddsa_hash_type() 152 return hash_type; in get_eddsa_hash_type() 312 hash_alg_type hash_type; in eddsa_get_digest_from_priv_key() local 318 MUST_HAVE(((hash_type = get_eddsa_hash_type(in_priv->key_type)) != UNKNOWN_HASH_ALG), ret, err); in eddsa_get_digest_from_priv_key() 319 ret = get_hash_by_type(hash_type, &hash); EG(ret, err); in eddsa_get_digest_from_priv_key() 576 hash_alg_type hash_type = UNKNOWN_HASH_ALG; in eddsa_derive_priv_key_hash() local 586 MUST_HAVE(((hash_type = get_eddsa_hash_type(in_priv->key_type)) != UNKNOWN_HASH_ALG), ret, err); in eddsa_derive_priv_key_hash() [all …]
|
/freebsd/crypto/libecc/src/hash/ |
H A D | hmac.c | 17 hash_alg_type hash_type) in hmac_init() argument 34 ret = get_hash_by_type(hash_type, &(ctx->hash)); EG(ret, err); in hmac_init() 136 int hmac(const u8 *hmackey, u32 hmackey_len, hash_alg_type hash_type, in hmac() argument 142 ret = hmac_init(&ctx, hmackey, hmackey_len, hash_type); EG(ret, err); in hmac() 154 int hmac_scattered(const u8 *hmackey, u32 hmackey_len, hash_alg_type hash_type, in hmac_scattered() argument 162 ret = hmac_init(&ctx, hmackey, hmackey_len, hash_type); EG(ret, err); in hmac_scattered()
|
/freebsd/crypto/libecc/include/libecc/hash/ |
H A D | hmac.h | 26 …_RET int hmac_init(hmac_context *ctx, const u8 *hmackey, u32 hmackey_len, hash_alg_type hash_type); 32 ATTRIBUTE_WARN_UNUSED_RET int hmac(const u8 *hmackey, u32 hmackey_len, hash_alg_type hash_type, con… 34 …ET int hmac_scattered(const u8 *hmackey, u32 hmackey_len, hash_alg_type hash_type, const u8 **inpu…
|
/freebsd/sys/dev/ice/ |
H A D | ice_rss.h | 90 rss_hash2bucket(uint32_t hash_val, uint32_t hash_type, uint32_t *bucket_id) in rss_hash2bucket() argument 92 switch (hash_type) { in rss_hash2bucket()
|
/freebsd/sys/net/ |
H A D | rss_config.c | 349 rss_hash2cpuid(uint32_t hash_val, uint32_t hash_type) in rss_hash2cpuid() argument 352 switch (hash_type) { in rss_hash2cpuid() 370 rss_hash2bucket(uint32_t hash_val, uint32_t hash_type, uint32_t *bucket_id) in rss_hash2bucket() argument 373 switch (hash_type) { in rss_hash2bucket()
|
H A D | rss_config.h | 130 u_int rss_hash2cpuid(uint32_t hash_val, uint32_t hash_type); 131 int rss_hash2bucket(uint32_t hash_val, uint32_t hash_type,
|
/freebsd/sys/dev/qcom_ess_edma/ |
H A D | qcom_ess_edma_rx.c | 337 int num_rfds, port_id, priority, hash_type, hash_val, flow_cookie, vlan; in qcom_ess_edma_rx_ring_complete() local 380 hash_type = (rrd->rrd5 >> EDMA_HASH_TYPE_SHIFT) in qcom_ess_edma_rx_ring_complete() 394 hash_type, in qcom_ess_edma_rx_ring_complete() 468 if (hash_type != EDMA_RRD_RSS_TYPE_NONE) { in qcom_ess_edma_rx_ring_complete()
|