Home
last modified time | relevance | path

Searched full:hash1 (Results 1 – 25 of 28) sorted by relevance

12

/linux/lib/crypto/tests/
H A Dsha256_kunit.c56 u8 *data1_buf, *data2_buf, *hash1, *hash2; in test_sha256_finup_2x() local
64 hash1 = alloc_guarded_buf(test, SHA256_DIGEST_SIZE); in test_sha256_finup_2x()
83 sha256_finup_2x(ctx, data1, data2, data_len, hash1, hash2); in test_sha256_finup_2x()
93 test, hash1, expected_hash1, SHA256_DIGEST_SIZE, in test_sha256_finup_2x()
94 "Wrong hash1 with salt_len=%zu data_len=%zu", salt_len, in test_sha256_finup_2x()
164 u8 hash1[SHA256_DIGEST_SIZE]; in benchmark_sha256_finup_2x() local
177 data_len, hash1, hash2); in benchmark_sha256_finup_2x()
194 data_len, hash1, hash2); in benchmark_sha256_finup_2x()
H A Dblake2s_kunit.c76 u8 hash1[BLAKE2S_HASH_SIZE]; in test_blake2s_with_guarded_key_buf() local
83 blake2s(hash1, test_buf, key, in test_blake2s_with_guarded_key_buf()
87 KUNIT_ASSERT_MEMEQ(test, hash1, hash2, BLAKE2S_HASH_SIZE); in test_blake2s_with_guarded_key_buf()
93 KUNIT_ASSERT_MEMEQ(test, hash1, hash2, BLAKE2S_HASH_SIZE); in test_blake2s_with_guarded_key_buf()
H A Dhash-test-template.h153 u8 hash1[HASH_SIZE]; in test_hash_incremental_updates() local
163 HASH(&test_buf[offset], total_len, hash1); in test_hash_incremental_updates()
188 test, hash1, hash2, HASH_SIZE, in test_hash_incremental_updates()
285 u8 hash1[128 + HASH_SIZE]; in test_hash_alignment_consistency() local
296 HASH(&test_buf[data_offs1], len, &hash1[hash_offs1]); in test_hash_alignment_consistency()
300 test, &hash1[hash_offs1], &hash2[hash_offs2], HASH_SIZE, in test_hash_alignment_consistency()
/linux/lib/zstd/compress/
H A Dzstd_fast.c220 size_t hash1; /* hash for ip1 */ in ZSTD_compressBlock_fast_noDict_generic() local
261 hash1 = ZSTD_hashPtr(ip1, hlog, mls); in ZSTD_compressBlock_fast_noDict_generic()
286 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
295 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
301 matchIdx = hashTable[hash1]; in ZSTD_compressBlock_fast_noDict_generic()
304 hash0 = hash1; in ZSTD_compressBlock_fast_noDict_generic()
305 hash1 = ZSTD_hashPtr(ip2, hlog, mls); in ZSTD_compressBlock_fast_noDict_generic()
322 hashTable[hash1] = (U32)(ip1 - base); in ZSTD_compressBlock_fast_noDict_generic()
328 matchIdx = hashTable[hash1]; in ZSTD_compressBlock_fast_noDict_generic()
331 hash0 = hash1; in ZSTD_compressBlock_fast_noDict_generic()
[all …]
/linux/net/netfilter/ipvs/
H A Dip_vs_mh.c65 hsiphash_key_t hash1, hash2; member
70 static inline void generate_hash_secret(hsiphash_key_t *hash1, in generate_hash_secret() argument
73 hash1->key[0] = 2654435761UL; in generate_hash_secret()
74 hash1->key[1] = 2654435761UL; in generate_hash_secret()
144 dest->port, &s->hash1, 0) % in ip_vs_mh_permutate()
238 unsigned int hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, 0) in ip_vs_mh_get()
256 &s->hash1, 0) % IP_VS_MH_TAB_SIZE; in ip_vs_mh_get_fallback()
271 hash = ip_vs_mh_hashkey(svc->af, addr, port, &s->hash1, in ip_vs_mh_get_fallback()
398 generate_hash_secret(&s->hash1, &s->hash2); in ip_vs_mh_init_svc()
/linux/fs/ext4/
H A Dhash.c105 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_unsigned() local
109 hash = hash1 + (hash0 ^ (((int) *ucp++) * 7152373)); in dx_hack_hash_unsigned()
113 hash1 = hash0; in dx_hack_hash_unsigned()
121 __u32 hash, hash0 = 0x12a3fe2d, hash1 = 0x37abe8f9; in dx_hack_hash_signed() local
125 hash = hash1 + (hash0 ^ (((int) *scp++) * 7152373)); in dx_hack_hash_signed()
129 hash1 = hash0; in dx_hack_hash_signed()
/linux/tools/testing/selftests/bpf/progs/
H A Drecursion.c15 } hash1 SEC(".maps");
32 if (map == (void *)&hash1) { in BPF_PROG()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Drecursion.c23 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash1), &key); in test_recursion()
25 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash1), &key); in test_recursion()
/linux/tools/usb/usbip/libsrc/
H A Dnames.c62 #define HASH1 0x10 macro
68 unsigned int mask1 = HASH1 << 27, mask2 = HASH2 << 27; in hashnum()
70 for (; mask1 >= HASH1; mask1 >>= 1, mask2 >>= 1) in hashnum()
/linux/Documentation/devicetree/bindings/crypto/
H A Dst,stm32-hash.yaml87 clocks = <&rcc HASH1>;
/linux/arch/arm/boot/dts/st/
H A Dstm32mp157a-dk1-scmi.dts40 &hash1 {
H A Dstm32mp157c-ed1-scmi.dts45 &hash1 {
H A Dstm32mp157c-dk2-scmi.dts46 &hash1 {
H A Dstm32mp157c-ev1-scmi.dts46 &hash1 {
H A Dstm32mp157f-dk2-scmi.dtsi59 &hash1 {
H A Dstm32mp153c-lxa-fairytux2.dtsi197 &hash1 {
H A Dstm32mp157c-emstamp-argon.dtsi183 &hash1 {
/linux/include/dt-bindings/clock/
H A Dstm32mp13-clks.h95 #define HASH1 67 macro
H A Dstm32mp1-clks.h110 #define HASH1 97 macro
/linux/scripts/
H A Dget_dvb_firmware558 my $hash1 = "d798d5a757121174f0dbc5f2833c0c85";
568 verify($file1, $hash1);
701 my $hash1 = "02fcf11174eda84745dae7e61c5ff9ba";
710 verify("$fwfile1", $hash1);
/linux/drivers/net/ethernet/intel/idpf/
H A Dvirtchnl2_lan_desc.h388 * @hash1: Lower bits of Rx hash value.
429 __le16 hash1; member
/linux/drivers/clk/stm32/
H A Dclk-stm32mp13.c877 static struct clk_stm32_gate hash1 = { variable
879 .hw.init = CLK_HW_INIT("hash1", "ck_axi", &clk_stm32_gate_ops, 0),
1387 STM32_GATE_CFG(HASH1, hash1, SECF_HASH1),
H A Dclk-stm32mp1.c1983 PCLK(HASH1, "hash1", "ck_axi", CLK_IGNORE_UNUSED, G_HASH1),
2121 HASH1,
/linux/net/unix/
H A Daf_unix.c229 unsigned int hash1, unsigned int hash2) in unix_table_double_lock() argument
231 if (hash1 == hash2) { in unix_table_double_lock()
232 spin_lock(&net->unx.table.locks[hash1]); in unix_table_double_lock()
236 if (hash1 > hash2) in unix_table_double_lock()
237 swap(hash1, hash2); in unix_table_double_lock()
239 spin_lock(&net->unx.table.locks[hash1]); in unix_table_double_lock()
244 unsigned int hash1, unsigned int hash2) in unix_table_double_unlock() argument
246 if (hash1 == hash2) { in unix_table_double_unlock()
247 spin_unlock(&net->unx.table.locks[hash1]); in unix_table_double_unlock()
251 spin_unlock(&net->unx.table.locks[hash1]); in unix_table_double_unlock()
/linux/Documentation/crypto/
H A Ddevel-algos.rst216 '----' '--> HASH1

12