Home
last modified time | relevance | path

Searched full:k1 (Results 1 – 25 of 191) sorted by relevance

12345678

/freebsd/crypto/openssh/regress/unittests/sshkey/
H A Dtest_sshkey.c184 struct sshkey *k1 = NULL, *k2 = NULL, *k3 = NULL, *kf = NULL; in sshkey_tests() local
194 k1 = sshkey_new(-42); in sshkey_tests()
195 ASSERT_PTR_EQ(k1, NULL); in sshkey_tests()
199 k1 = sshkey_new(KEY_UNSPEC); in sshkey_tests()
200 ASSERT_PTR_NE(k1, NULL); in sshkey_tests()
201 sshkey_free(k1); in sshkey_tests()
206 k1 = sshkey_new(KEY_RSA); in sshkey_tests()
207 ASSERT_PTR_NE(k1, NULL); in sshkey_tests()
208 ASSERT_PTR_NE(k1->rsa, NULL); in sshkey_tests()
209 sshkey_free(k1); in sshkey_tests()
[all …]
H A Dtest_fuzz.c52 struct sshkey *k1; in public_fuzz() local
66 &k1), 0); in public_fuzz()
67 sshkey_free(k1); in public_fuzz()
71 if (sshkey_from_blob(fuzz_ptr(fuzz), fuzz_len(fuzz), &k1) == 0) in public_fuzz()
72 sshkey_free(k1); in public_fuzz()
113 struct sshkey *k1; in sshkey_fuzz_tests() local
123 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
124 sshkey_free(k1); in sshkey_fuzz_tests()
131 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
132 sshkey_free(k1); in sshkey_fuzz_tests()
[all …]
H A Dtest_file.c46 struct sshkey *k1, *k2; in sshkey_file_tests() local
61 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_file_tests()
63 ASSERT_PTR_NE(k1, NULL); in sshkey_file_tests()
67 ASSERT_BIGNUM_EQ(rsa_n(k1), a); in sshkey_file_tests()
68 ASSERT_BIGNUM_EQ(rsa_p(k1), b); in sshkey_file_tests()
69 ASSERT_BIGNUM_EQ(rsa_q(k1), c); in sshkey_file_tests()
81 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
90 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
100 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
108 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
[all …]
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dhash.h88 uint32_t k1 = hash_get_block_32(blocks, i); in hash_x86_32() local
90 k1 *= c1; in hash_x86_32()
91 k1 = hash_rotl_32(k1, 15); in hash_x86_32()
92 k1 *= c2; in hash_x86_32()
94 h1 ^= k1; in hash_x86_32()
104 uint32_t k1 = 0; in hash_x86_32() local
107 case 3: k1 ^= tail[2] << 16; JEMALLOC_FALLTHROUGH in hash_x86_32()
108 case 2: k1 ^= tail[1] << 8; JEMALLOC_FALLTHROUGH in hash_x86_32()
109 case 1: k1 ^= tail[0]; k1 *= c1; k1 = hash_rotl_32(k1, 15); in hash_x86_32()
110 k1 *= c2; h1 ^= k1; in hash_x86_32()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankCombiner.cpp83 Register &Val, CstTy &K0, CstTy &K1) const;
98 bool isClampZeroToOne(MachineInstr *K0, MachineInstr *K1) const;
174 CstTy &K0, CstTy &K1) const { in matchMed()
175 // 4 operand commutes of: min(max(Val, K0), K1). in matchMed()
176 // Find K1 from outer instr: min(max(...), K1) or min(K1, max(...)). in matchMed()
178 // 4 operand commutes of: max(min(Val, K1), K0). in matchMed()
180 // Find K1 and Val from inner instr: min(K1, Val) or min(Val, K1). in matchMed()
186 m_Cst(K1)), in matchMed()
188 MMMOpc.Max, m_CommutativeBinOp(MMMOpc.Min, m_Reg(Val), m_Cst(K1)), in matchMed()
205 std::optional<ValueAndVReg> K0, K1; in matchIntMinMaxToMed3() local
[all …]
/freebsd/sys/contrib/ck/src/
H A Dck_ht_hash.h137 uint32_t k1 = getblock(blocks,i); in MurmurHash3_x86_32() local
139 k1 *= c1; in MurmurHash3_x86_32()
140 k1 = ROTL32(k1,15); in MurmurHash3_x86_32()
141 k1 *= c2; in MurmurHash3_x86_32()
143 h1 ^= k1; in MurmurHash3_x86_32()
153 uint32_t k1 = 0; in MurmurHash3_x86_32() local
157 case 3: k1 ^= tail[2] << 16; in MurmurHash3_x86_32()
159 case 2: k1 ^= tail[1] << 8; in MurmurHash3_x86_32()
161 case 1: k1 ^= tail[0]; in MurmurHash3_x86_32()
162 k1 *= c1; k1 = ROTL32(k1,15); k1 *= c2; h1 ^= k1; in MurmurHash3_x86_32()
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Ddes.h61 # define DES_ecb2_encrypt(i,o,k1,k2,e) \ argument
62 DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))
64 # define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ argument
65 DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
67 # define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ argument
68 DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
70 # define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ argument
71 DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
/freebsd/contrib/atf/atf-c/detail/
H A Dmap_test.c82 const char *const array[] = { "K1", "V1", "K2", "V2", NULL }; in ATF_TC_BODY()
89 iter = atf_map_find_c(&map, "K1"); in ATF_TC_BODY()
91 ATF_REQUIRE(strcmp(atf_map_citer_key(iter), "K1") == 0); in ATF_TC_BODY()
105 const char *const array[] = { "K1", "V1", "K2", NULL }; in ATF_TC_BODY()
130 RE(atf_map_insert(&map, "K1", val1, false)); in ATF_TC_BODY()
136 iter = atf_map_find(&map, "K1"); in ATF_TC_BODY()
138 ATF_REQUIRE(strcmp(atf_map_iter_key(iter), "K1") == 0); in ATF_TC_BODY()
142 iter = atf_map_find(&map, "K1"); in ATF_TC_BODY()
144 ATF_REQUIRE(strcmp(atf_map_iter_key(iter), "K1") == 0); in ATF_TC_BODY()
168 RE(atf_map_insert(&map, "K1", val1, false)); in ATF_TC_BODY()
[all …]
/freebsd/crypto/openssl/crypto/cmac/
H A Dcmac.c26 /* Keys k1 and k2 */
27 unsigned char k1[EVP_MAX_BLOCK_LENGTH]; member
37 /* Make temporary keys K1 and K2 */
39 static void make_kn(unsigned char *k1, const unsigned char *l, int bl) in make_kn() argument
46 k1[i] = (c << 1) | ((cnext = l[i + 1]) >> 7); in make_kn()
49 k1[i] = (c << 1) ^ ((0 - carry) & (bl == 16 ? 0x87 : 0x1b)); in make_kn()
73 OPENSSL_cleanse(ctx->k1, EVP_MAX_BLOCK_LENGTH); in CMAC_CTX_cleanup()
103 memcpy(out->k1, in->k1, bl); in CMAC_CTX_copy()
150 make_kn(ctx->k1, ctx->tbl, bl); in CMAC_Init()
151 make_kn(ctx->k2, ctx->k1, bl); in CMAC_Init()
[all …]
/freebsd/tests/sys/kqueue/libkqueue/
H A Dmain.c240 _kevent_cmp(struct kevent *k1, struct kevent *k2, const char *file, int line) in _kevent_cmp() argument
249 if (k1->flags & EV_ADD) in _kevent_cmp()
252 if (k1->ident != k2->ident || k1->filter != k2->filter || in _kevent_cmp()
253 k1->flags != k2->flags || k1->fflags != k2->fflags || in _kevent_cmp()
254 k1->data != k2->data || k1->udata != k2->udata || in _kevent_cmp()
255 k1->ext[0] != k2->ext[0] || k1->ext[1] != k2->ext[1] || in _kevent_cmp()
256 k1->ext[0] != k2->ext[2] || k1->ext[0] != k2->ext[3]) { in _kevent_cmp()
257 kev1_str = kevent_to_str(k1); in _kevent_cmp()
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/
H A Dlac_sym_hash_sw_precomputes.c248 Cpa8U k1[LAC_HASH_CMAC_BLOCK_SIZE], in LacSymHash_AesECBPreCompute() local
255 /* Original state size includes K, K1 and K2 which are of equal in LacSymHash_AesECBPreCompute()
261 * K is just copeid, K1 and K2 need to be single inplace encrypt in LacSymHash_AesECBPreCompute()
279 /* Derived keys (k1 and k2), copy them to in LacSymHash_AesECBPreCompute()
283 /* Calculating K1 */ in LacSymHash_AesECBPreCompute()
285 k1[i] = (*ptr) << 1; in LacSymHash_AesECBPreCompute()
287 k1[i - 1] |= in LacSymHash_AesECBPreCompute()
298 k1[i] ^= LAC_SYM_AES_CMAC_RB_128; in LacSymHash_AesECBPreCompute()
305 k2[i] = (k1[i]) << 1; in LacSymHash_AesECBPreCompute()
308 (k1[i]) >> (LAC_NUM_BITS_IN_BYTE - 1); in LacSymHash_AesECBPreCompute()
[all …]
/freebsd/contrib/bzip2/
H A Dbzlib.c542 UChar k1; in unRLE_obuf_to_output_FAST() local
569 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
570 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
572 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
575 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
576 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
578 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
581 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
582 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
584 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dbox_easy2.c20 unsigned char *k1; in main() local
43 k1 = (unsigned char *) sodium_malloc(crypto_box_BEFORENMBYTES); in main()
79 ret = crypto_box_beforenm(k1, small_order_p, bobsk); in main()
84 ret = crypto_box_beforenm(k1, alicepk, bobsk); in main()
91 if (crypto_box_easy_afternm(c, m, 0, nonce, k1) != 0) { in main()
96 crypto_box_easy_afternm(c, m, (unsigned long long) mlen, nonce, k1); in main()
128 k1); in main()
141 sodium_free(k1); in main()
/freebsd/sys/crypto/openssl/amd64/
H A Drsaz-avx512.S324 vpcmpuq $1,%ymm1,%ymm4,%k1
329 kmovb %k1,%r14d
336 vpcmpuq $0,%ymm1,%ymm4,%k1
341 kmovb %k1,%r9d
371 kmovb %r14d,%k1
380 vpsubq %ymm4,%ymm1,%ymm1{%k1}
627 vpcmpuq $1,%ymm1,%ymm4,%k1
632 kmovb %k1,%r14d
639 vpcmpuq $0,%ymm1,%ymm4,%k1
644 kmovb %k1,%r9d
[all …]
H A Daes-gcm-avx512.S1126 kmovq (%r12),%k1
1130 vmovdqu8 192(%r10),%zmm5{%k1}{z}
1195 kmovq (%r12),%k1
1199 vmovdqu8 192(%r10),%zmm5{%k1}{z}
1266 kmovq (%r12),%k1
1270 vmovdqu8 192(%r10),%ymm5{%k1}{z}
1336 kmovq (%r12),%k1
1340 vmovdqu8 192(%r10),%xmm5{%k1}{z}
1406 kmovq (%r12),%k1
1409 vmovdqu8 128(%r10),%zmm4{%k1}{z}
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_ftok.c65 key_t k1, k2, k3; in ATF_TC_BODY() local
75 k1 = ftok(path, key); in ATF_TC_BODY()
79 ATF_REQUIRE(k1 != -1); in ATF_TC_BODY()
83 if (k1 != k2) in ATF_TC_BODY()
86 if (k1 != k3) in ATF_TC_BODY()
/freebsd/sys/opencrypto/
H A Drmd160.c60 #define K1 0x5A827999U macro
196 R(e, a, b, c, d, F1, K1, 7, 7); in RMD160Transform()
197 R(d, e, a, b, c, F1, K1, 6, 4); in RMD160Transform()
198 R(c, d, e, a, b, F1, K1, 8, 13); in RMD160Transform()
199 R(b, c, d, e, a, F1, K1, 13, 1); in RMD160Transform()
200 R(a, b, c, d, e, F1, K1, 11, 10); in RMD160Transform()
201 R(e, a, b, c, d, F1, K1, 9, 6); in RMD160Transform()
202 R(d, e, a, b, c, F1, K1, 7, 15); in RMD160Transform()
203 R(c, d, e, a, b, F1, K1, 15, 3); in RMD160Transform()
204 R(b, c, d, e, a, F1, K1, 7, 12); in RMD160Transform()
[all …]
/freebsd/contrib/wpa/src/crypto/
H A Daes-siv.c126 const u8 *k1, *k2; in aes_siv_encrypt() local
136 k1 = key; in aes_siv_encrypt()
146 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt()
169 const u8 *k1, *k2; in aes_siv_decrypt() local
181 k1 = key; in aes_siv_decrypt()
201 ret = aes_s2v(k1, key_len, num_elem + 1, _addr, _len, check); in aes_siv_decrypt()
/freebsd/lib/libc/db/btree/
H A Dbt_utils.c131 * k1: DBT pointer of first arg to comparison
135 * < 0 if k1 is < record
136 * = 0 if k1 is = record
137 * > 0 if k1 is > record
140 __bt_cmp(BTREE *t, const DBT *k1, EPG *e) in __bt_cmp() argument
184 return ((*t->bt_cmp)(k1, &k2)); in __bt_cmp()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_shorthash/siphash24/ref/
H A Dshorthash_siphash24_ref.c16 uint64_t k1 = LOAD64_LE(k + 8); in crypto_shorthash_siphash24() local
22 v3 ^= k1; in crypto_shorthash_siphash24()
24 v1 ^= k1; in crypto_shorthash_siphash24()
H A Dshorthash_siphashx24_ref.c15 uint64_t k1 = LOAD64_LE(k + 8); in crypto_shorthash_siphashx24() local
21 v3 ^= k1; in crypto_shorthash_siphashx24()
23 v1 ^= k1; in crypto_shorthash_siphashx24()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DTrace.cpp69 template <typename K1, typename K2, typename V>
70 static std::optional<V> Lookup(DenseMap<K1, DenseMap<K2, V>> &map, K1 k1, in Lookup() argument
72 auto it = map.find(k1); in Lookup()
79 template <typename K1, typename K2, typename V>
80 static V *LookupAsPtr(DenseMap<K1, DenseMap<K2, V>> &map, K1 k1, K2 k2) { in LookupAsPtr() argument
81 auto it = map.find(k1); in LookupAsPtr()
/freebsd/contrib/bearssl/src/hash/
H A Dsha1.c34 #define K1 ((uint32_t)0x5A827999) macro
64 e += ROTL(a, 5) + F(b, c, d) + K1 + m[i + 0]; b = ROTL(b, 30); in br_sha1_round()
65 d += ROTL(e, 5) + F(a, b, c) + K1 + m[i + 1]; a = ROTL(a, 30); in br_sha1_round()
66 c += ROTL(d, 5) + F(e, a, b) + K1 + m[i + 2]; e = ROTL(e, 30); in br_sha1_round()
67 b += ROTL(c, 5) + F(d, e, a) + K1 + m[i + 3]; d = ROTL(d, 30); in br_sha1_round()
68 a += ROTL(b, 5) + F(c, d, e) + K1 + m[i + 4]; c = ROTL(c, 30); in br_sha1_round()
/freebsd/contrib/unbound/util/storage/
H A Ddnstree.c47 int name_tree_compare(const void* k1, const void* k2) in name_tree_compare() argument
49 struct name_tree_node* x = (struct name_tree_node*)k1; in name_tree_compare()
60 int addr_tree_compare(const void* k1, const void* k2) in addr_tree_compare() argument
62 struct addr_tree_node* n1 = (struct addr_tree_node*)k1; in addr_tree_compare()
74 int addr_tree_addrport_compare(const void* k1, const void* k2) in addr_tree_addrport_compare() argument
76 struct addr_tree_node* n1 = (struct addr_tree_node*)k1; in addr_tree_addrport_compare()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DDependencyDirectivesScanner.h49 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { in isOneOf()
50 return is(K1) || is(K2); in isOneOf()
52 template <typename... Ts> bool isOneOf(tok::TokenKind K1, Ts... Ks) const { in isOneOf()
53 return is(K1) || isOneOf(Ks...); in isOneOf()

12345678