Home
last modified time | relevance | path

Searched refs:k1 (Results 1 – 25 of 132) sorted by relevance

123456

/openbsd/src/regress/usr.bin/ssh/unittests/sshkey/
Dtest_sshkey.c173 struct sshkey *k1 = NULL, *k2 = NULL, *k3 = NULL, *k4 = NULL; in sshkey_tests() local
178 k1 = sshkey_new(-42); in sshkey_tests()
179 ASSERT_PTR_EQ(k1, NULL); in sshkey_tests()
183 k1 = sshkey_new(KEY_UNSPEC); in sshkey_tests()
184 ASSERT_PTR_NE(k1, NULL); in sshkey_tests()
185 sshkey_free(k1); in sshkey_tests()
189 k1 = sshkey_new(KEY_RSA); in sshkey_tests()
190 ASSERT_PTR_NE(k1, NULL); in sshkey_tests()
191 ASSERT_PTR_NE(k1->pkey, NULL); in sshkey_tests()
192 sshkey_free(k1); in sshkey_tests()
[all …]
Dtest_fuzz.c44 struct sshkey *k1; in public_fuzz() local
58 &k1), 0); in public_fuzz()
59 sshkey_free(k1); in public_fuzz()
63 if (sshkey_from_blob(fuzz_ptr(fuzz), fuzz_len(fuzz), &k1) == 0) in public_fuzz()
64 sshkey_free(k1); in public_fuzz()
105 struct sshkey *k1; in sshkey_fuzz_tests() local
115 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_fuzz_tests()
116 sshkey_free(k1); in sshkey_fuzz_tests()
123 if (sshkey_parse_private_fileblob(fuzzed, "", &k1, NULL) == 0) in sshkey_fuzz_tests()
124 sshkey_free(k1); in sshkey_fuzz_tests()
[all …]
Dtest_file.c38 struct sshkey *k1, *k2; in sshkey_file_tests() local
50 ASSERT_INT_EQ(sshkey_parse_private_fileblob(buf, "", &k1, NULL), 0); in sshkey_file_tests()
52 ASSERT_PTR_NE(k1, NULL); in sshkey_file_tests()
56 ASSERT_BIGNUM_EQ(rsa_n(k1), a); in sshkey_file_tests()
57 ASSERT_BIGNUM_EQ(rsa_p(k1), b); in sshkey_file_tests()
58 ASSERT_BIGNUM_EQ(rsa_q(k1), c); in sshkey_file_tests()
70 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
79 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
89 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
97 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
[all …]
/openbsd/src/gnu/gcc/libgomp/testsuite/libgomp.c/
Dpr29947-2.c10 test1 (long j1, long k1, long j2, long k2) in test1() argument
16 for (i = j1; i <= k1; ++i) in test1()
30 test2 (long j1, long k1, long j2, long k2) in test2() argument
36 for (i = k1; i >= j1; --i) in test2()
50 test3 (long j1, long k1, long j2, long k2) in test3() argument
56 for (i = j1; i <= k1; ++i) in test3()
70 test4 (long j1, long k1, long j2, long k2) in test4() argument
76 for (i = k1; i >= j1; --i) in test4()
90 test5 (long j1, long k1, long j2, long k2) in test5() argument
96 for (i = j1; i <= k1; ++i) in test5()
[all …]
Dpr29947-1.c10 test1 (long j1, long k1, long j2, long k2) in test1() argument
16 for (i = j1; i <= k1; ++i) in test1()
30 test2 (long j1, long k1, long j2, long k2) in test2() argument
36 for (i = k1; i >= j1; --i) in test2()
50 test3 (long j1, long k1, long j2, long k2) in test3() argument
56 for (i = j1; i <= k1; ++i) in test3()
70 test4 (long j1, long k1, long j2, long k2) in test4() argument
76 for (i = k1; i >= j1; --i) in test4()
90 test5 (long j1, long k1, long j2, long k2) in test5() argument
96 for (i = j1; i <= k1; ++i) in test5()
[all …]
/openbsd/src/usr.sbin/unbound/testcode/
Dunitecs.c214 addrkey_t k1[] = {0x55, 0x55, 0x5A}; in issub_test() local
217 unit_assert( !unittest_wrapper_addrtree_issub(k1, 24, k2, 24, 0) ); in issub_test()
218 unit_assert( unittest_wrapper_addrtree_issub(k1, 8, k2, 16, 0) ); in issub_test()
219 unit_assert( unittest_wrapper_addrtree_issub(k2, 12, k1, 13, 0) ); in issub_test()
220 unit_assert( !unittest_wrapper_addrtree_issub(k1, 16, k2, 12, 0) ); in issub_test()
221 unit_assert( unittest_wrapper_addrtree_issub(k1, 12, k2, 12, 0) ); in issub_test()
222 unit_assert( !unittest_wrapper_addrtree_issub(k1, 13, k2, 13, 0) ); in issub_test()
223 unit_assert( unittest_wrapper_addrtree_issub(k1, 24, k2, 24, 13) ); in issub_test()
224 unit_assert( !unittest_wrapper_addrtree_issub(k1, 24, k2, 20, 13) ); in issub_test()
225 unit_assert( unittest_wrapper_addrtree_issub(k1, 20, k2, 24, 13) ); in issub_test()
[all …]
/openbsd/src/sys/arch/mips64/mips64/
Dtlbhandler.S64 sltiu k1, k0, PMAP_SEGTABSIZE
65 beqz k1, _inv_seg # wrong if outside pm_segtab
67 GET_CPU_INFO(k1, k0)
68 PTR_L k1, CI_CURPROCPADDR(k1)
72 PTR_L k1, PCB_SEGTAB(k1)
73 PTR_ADDU k1, k1, k0
74 PTR_L k1, 0(k1) # get pointer to page directory
77 beqz k1, _inv_seg
79 PTR_ADDU k1, k1, k0
80 PTR_L k1, 0(k1) # get pointer to page table
[all …]
Dexception.S146 MFC0 k1, COP_0_CAUSE_REG
149 and k1, k1, CR_EXC_CODE
152 PTR_ADDU k0, k0, k1
153 PTR_ADDU k0, k0, k1 # yes, twice...
160 PTR_ADDU k0, k0, k1
161 PTR_ADDU k0, k0, k1 # yes, twice...
207 GET_CPU_INFO(k1, k0)
208 PTR_L k0, CI_CURPROCPADDR(k1)
259 move k1, t1
260 PTR_L k0, CI_CURPROCPADDR(k1)
[all …]
/openbsd/src/gnu/usr.bin/perl/t/op/
Dcaller.pl123 my ($k1, $k2, $k3, $k4);
125 $k1 = chr 163;
126 $k2 = $k1;
132 $^H{$k1} = 1;
139 is(hint_fetch($k1), 2, "UTF-8 or not, it's the same");
152 my ($k1, $k2, $k3);
154 ($k1, $k2, $k3) = ("\0", "\0\0", "\0\0\0");
155 $^H{$k1} = 1;
160 is(hint_fetch($k1), 1, "Keys with the same hash value don't clash");
165 $^H{$k1} = "a";
[all …]
Dmultideref.t60 our ($i1, $i2, $k1, $k2) = (3, 1, 'foo', 'c');
67 ::is($a[$i1]{$k1}[$i2]{$k2}, 3, 'fetch: pkg indices');
68 ::is($r->[$i1]{$k1}[$i2]{$k2}, 3, 'fetch: deref pkg indices');
79 ::is($a[$i1]{$k1}[$i2]{$k2} = 7, 7, 'store: pkg indices');
80 ::is($a[$i1]{$k1}[$i2]{$k2}, 7, 'store: pkg indices 2');
81 ::is($r->[$i1]{$k1}[$i2]{$k2} = 9, 9, 'store: deref pkg indices');
82 ::is($r->[$i1]{$k1}[$i2]{$k2}, 9, 'store: deref pkg indices 2');
101 ::is(local $a[$i1]{$k1}[$i2]{$k2} = 21, 21, 'local pkg indices');
102 ::is($a[$i1]{$k1}[$i2]{$k2}, 21, 'local pkg indices 2');
104 ::is($a[$i1]{$k1}[$i2]{$k2}, 15, 'local pkg indices 3');
[all …]
Dtiehash.t100 my $k1 = each %h;
102 ok(defined $k1, "Got a key");
115 isnt($k1, $have[0], "two different keys");
117 @have = sort @have, $k1;
134 my $k1 = each %h;
136 ok(defined $k1, "Got a key");
/openbsd/src/lib/libcrypto/des/
Ddes.h91 #define DES_ecb2_encrypt(i,o,k1,k2,e) \ argument
92 DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))
94 #define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ argument
95 DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
97 #define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ argument
98 DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
100 #define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ argument
101 DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
/openbsd/src/gnu/usr.bin/perl/cpan/Compress-Raw-Bzip2/bzip2-src/
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 …]
/openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/27_io/
Dios_init.cc223 int k1; in test01() local
226 k1 = buf.get_i(); in test01()
227 VERIFY( k1 == initial ); in test01()
231 k1 = buf.get_i(); in test01()
232 VERIFY( k1 == initial ); in test01()
235 k1 = buf.get_i(); in test01()
236 VERIFY( k1 == initial ); in test01()
241 k1 = buf.get_i(); in test01()
242 VERIFY( k1 == initial ); in test01()
245 k1 = buf.get_i(); in test01()
[all …]
/openbsd/src/gnu/usr.bin/perl/t/re/
Dreg_60508.t18 k1 = ....
30 $k1 = "." x 4 . ">>";
31 f($k1);
32 print "k1 = $k1\n";
/openbsd/src/gnu/gcc/libmudflap/testsuite/libmudflap.c/
Dpass53-frag.c3 union { int l; char c[sizeof (int)]; } k1; in foo1() local
5 k1.l = 0; in foo1()
8 m = k1.c; in foo1()
9 k1.c [sizeof (int)-1] = m[sizeof (int)-2]; in foo1()
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g77.f-torture/execute/
Dauto0.f42 integer k0(n), k1(n) local
58 k1(i) = n
63 jc1(i) = jc1(i) + k1(i) * jc0(i)
71 if (k1(i) .ne. -1) call abort
72 k1(i) = n
Dauto1.f42 integer k0(n,3,2), k1(n,3,2) local
60 k1(i, j, k) = n
67 jc1(i) = jc1(i) + k1(i, 1, 1) * jc0(i)
77 if (k1(i, j, k) .ne. -1) call abort
78 k1(i, j, k) = n
/openbsd/src/libexec/login_yubikey/
Dyubikey.c132 uint8_t k1, k2; in yubikey_aes_decrypt() local
198 k1 = state[j] ^ state[j + 2]; in yubikey_aes_decrypt()
199 a02x = xtime(k1); in yubikey_aes_decrypt()
203 k1 ^= (k2 ^ xtime(state[j + 1] ^ state[j + 2])); in yubikey_aes_decrypt()
204 k2 = k1; in yubikey_aes_decrypt()
210 k1 ^= (xtime(a02xx ^ a13xx) ^ a02xx); in yubikey_aes_decrypt()
213 state[j] ^= (k1 ^ a02x); in yubikey_aes_decrypt()
215 state[j + 2] ^= (k1 ^ a13x); in yubikey_aes_decrypt()
/openbsd/src/lib/libcrypto/cmac/
Dcmac.c72 unsigned char k1[EVP_MAX_BLOCK_LENGTH]; member
136 explicit_bzero(ctx->k1, EVP_MAX_BLOCK_LENGTH); in CMAC_CTX_cleanup()
172 memcpy(out->k1, in->k1, block_size); in CMAC_CTX_copy()
235 make_kn(ctx->k1, ctx->tbl, block_size); in CMAC_Init()
237 make_kn(ctx->k2, ctx->k1, block_size); in CMAC_Init()
311 out[i] = ctx->last_block[i] ^ ctx->k1[i]; in CMAC_Final()
/openbsd/src/gnu/usr.bin/perl/cpan/Digest-SHA/t/
Dhmacsha.t11 my $k1 = join( "", map { chr } (1 .. 32) );
15 $k1,
16 $k1,
17 $k1,
/openbsd/src/lib/libc/hash/
Dsiphash.c57 uint64_t k0, k1; in SipHash_Init() local
60 k1 = le64toh(key->k1); in SipHash_Init()
63 ctx->v[1] = 0x646f72616e646f6dULL ^ k1; in SipHash_Init()
65 ctx->v[3] = 0x7465646279746573ULL ^ k1; in SipHash_Init()
/openbsd/src/sys/crypto/
Dsiphash.c57 uint64_t k0, k1; in SipHash_Init() local
60 k1 = lemtoh64(&key->k1); in SipHash_Init()
63 ctx->v[1] = 0x646f72616e646f6dULL ^ k1; in SipHash_Init()
65 ctx->v[3] = 0x7465646279746573ULL ^ k1; in SipHash_Init()
/openbsd/src/gnu/llvm/llvm/include/llvm/ADT/
DHashing.h170 static constexpr uint64_t k1 = 0xb492b66fbe98f273ULL; variable
218 uint64_t a = fetch64(s) * k1; in hash_17to32_bytes()
275 0, seed, hash_16_bytes(seed, k1), rotate(seed ^ k1, 49), in create()
276 seed * k1, shift_mix(seed), 0 }; in create()
298 h0 = rotate(h0 + h1 + h3 + fetch64(s + 8), 37) * k1; in mix()
299 h1 = rotate(h1 + h4 + fetch64(s + 48), 42) * k1; in mix()
302 h2 = rotate(h2 + h5, 33) * k1; in mix()
303 h3 = h4 * k1; in mix()
315 return hash_16_bytes(hash_16_bytes(h3, h5) + shift_mix(h1) * k1 + h2, in finalize()
316 hash_16_bytes(h4, h6) + shift_mix(length) * k1 + h0); in finalize()
/openbsd/src/sbin/unwind/libunbound/util/storage/
Ddnstree.h212 int name_tree_compare(const void* k1, const void* k2);
215 int addr_tree_compare(const void* k1, const void* k2);
218 int addr_tree_addrport_compare(const void* k1, const void* k2);

123456