Home
last modified time | relevance | path

Searched refs:k2 (Results 1 – 25 of 177) sorted by relevance

12345678

/netbsd-src/external/bsd/openldap/dist/contrib/slapd-modules/comp_match/
H A Dcomponentlib.c93 ComponentBits* k, **k2; in GDecComponentBits() local
99 k2 = (ComponentBits**) v; in GDecComponentBits()
100 *k2 = (ComponentBits*) CompAlloc( mem_op, sizeof( ComponentBits ) ); in GDecComponentBits()
101 if ( !*k2 ) return LDAP_DECODING_ERROR; in GDecComponentBits()
102 k = *k2; in GDecComponentBits()
130 ComponentBits* k, **k2; in BDecComponentBits() local
136 k2 = (ComponentBits**) v; in BDecComponentBits()
137 *k2 = (ComponentBits*) CompAlloc( mem_op, sizeof( ComponentBits ) ); in BDecComponentBits()
138 if ( !*k2 ) return LDAP_DECODING_ERROR; in BDecComponentBits()
139 k = *k2; in BDecComponentBits()
[all …]
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dunitecs.c215 addrkey_t k2[] = {0x55, 0x5D, 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 …]
H A Dunitlruhash.c85 testkey_type* k2 = newkey(12 + 1024); in test_bin_find_entry() local
108 unit_assert( k->entry.hash == k2->entry.hash ); in test_bin_find_entry()
109 unit_assert( bin_find_entry(table, &bin, h, k2, NULL) == NULL ); in test_bin_find_entry()
133 unit_assert( k->entry.hash == k2->entry.hash ); in test_bin_find_entry()
134 unit_assert( bin_find_entry(table, &bin, h, k2, NULL) == NULL ); in test_bin_find_entry()
155 delkey(k2); in test_bin_find_entry()
165 testkey_type* k2 = newkey(14); in test_lru() local
184 lru_front(table, &k2->entry); in test_lru()
185 unit_assert( table->lru_start == &k2->entry && in test_lru()
188 lru_remove(table, &k2->entry); in test_lru()
[all …]
/netbsd-src/external/lgpl3/gmp/dist/mpn/generic/
H A Dbrootinv.c83 mp_limb_t kinv, k2, r0, y0; in mpn_brootinv() local
92 k2 = (k >> 1) + 1; /* (k + 1) / 2 , but avoid k+1 overflow */ in mpn_brootinv()
106 r0 = y0 ^ (((y0 << 1) ^ (y0 << 2)) & (k2 << 3) & 8); /* 4 bits */ in mpn_brootinv()
107 r0 = kinv * (k2 * r0 * 2 - y0 * powsquaredlimb(r0, k2 & 0x3f)); /* 8 bits */ in mpn_brootinv()
108 r0 = kinv * (k2 * r0 * 2 - y0 * powsquaredlimb(r0, k2 & 0x3fff)); /* 16 bits */ in mpn_brootinv()
114 r0 = kinv * (k2 * r0 * 2 - y0 * powsquaredlimb(r0, k2)); in mpn_brootinv()
135 tp2[bn] = mpn_mul_1 (tp2, rp, bn, k2 << 1); in mpn_brootinv()
139 mpn_powlo (rp, tp, &k2, 1, bn, tp3); in mpn_brootinv()
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_stream/xchacha20/
H A Dstream_xchacha20.c32 unsigned char k2[crypto_core_hchacha20_OUTPUTBYTES]; in crypto_stream_xchacha20() local
34 crypto_core_hchacha20(k2, n, k, NULL); in crypto_stream_xchacha20()
35 COMPILER_ASSERT(crypto_stream_chacha20_KEYBYTES <= sizeof k2); in crypto_stream_xchacha20()
41 k2); in crypto_stream_xchacha20()
49 unsigned char k2[crypto_core_hchacha20_OUTPUTBYTES]; in crypto_stream_xchacha20_xor_ic() local
51 crypto_core_hchacha20(k2, n, k, NULL); in crypto_stream_xchacha20_xor_ic()
53 c, m, mlen, n + crypto_core_hchacha20_INPUTBYTES, ic, k2); in crypto_stream_xchacha20_xor_ic()
/netbsd-src/sys/external/isc/libsodium/dist/src/libsodium/crypto_aead/xchacha20poly1305/sodium/
H A Daead_xchacha20poly1305.c28 unsigned char k2[crypto_core_hchacha20_OUTPUTBYTES]; in crypto_aead_xchacha20poly1305_ietf_encrypt_detached() local
32 crypto_core_hchacha20(k2, npub, k, NULL); in crypto_aead_xchacha20poly1305_ietf_encrypt_detached()
36 (c, mac, maclen_p, m, mlen, ad, adlen, nsec, npub2, k2); in crypto_aead_xchacha20poly1305_ietf_encrypt_detached()
37 sodium_memzero(k2, crypto_core_hchacha20_OUTPUTBYTES); in crypto_aead_xchacha20poly1305_ietf_encrypt_detached()
81 unsigned char k2[crypto_core_hchacha20_OUTPUTBYTES]; in crypto_aead_xchacha20poly1305_ietf_decrypt_detached() local
85 crypto_core_hchacha20(k2, npub, k, NULL); in crypto_aead_xchacha20poly1305_ietf_decrypt_detached()
89 (m, nsec, c, clen, mac, ad, adlen, npub2, k2); in crypto_aead_xchacha20poly1305_ietf_decrypt_detached()
90 sodium_memzero(k2, crypto_core_hchacha20_OUTPUTBYTES); in crypto_aead_xchacha20poly1305_ietf_decrypt_detached()
/netbsd-src/external/gpl3/gcc/dist/libobjc/objc-private/
H A Dhash.h183 objc_compare_ptrs (const void *k1, const void *k2) in objc_compare_ptrs() argument
185 return (k1 == k2); in objc_compare_ptrs()
191 objc_compare_strings (const void *k1, const void *k2) in objc_compare_strings() argument
193 if (k1 == k2) in objc_compare_strings()
195 else if (k1 == 0 || k2 == 0) in objc_compare_strings()
198 return ! strcmp ((const char *) k1, (const char *) k2); in objc_compare_strings()
/netbsd-src/external/gpl3/gcc.old/dist/libobjc/objc-private/
H A Dhash.h183 objc_compare_ptrs (const void *k1, const void *k2) in objc_compare_ptrs() argument
185 return (k1 == k2); in objc_compare_ptrs()
191 objc_compare_strings (const void *k1, const void *k2) in objc_compare_strings() argument
193 if (k1 == k2) in objc_compare_strings()
195 else if (k1 == 0 || k2 == 0) in objc_compare_strings()
198 return ! strcmp ((const char *) k1, (const char *) k2); in objc_compare_strings()
/netbsd-src/crypto/external/bsd/openssl.old/lib/libdes/
H A 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))
H A Doofb64ede.c67 des_key_schedule k2, des_key_schedule k3, des_cblock *ivec, in des_ede3_ofb64_encrypt() argument
93 des_encrypt3(ti,k1,k2,k3); in des_ede3_ofb64_encrypt()
120 des_key_schedule k2, des_cblock (*ivec), int *num) in des_ede2_ofb64_encrypt() argument
122 des_ede3_ofb64_encrypt(in, out, length, k1,k2,k1, ivec, num); in des_ede2_ofb64_encrypt()
/netbsd-src/crypto/external/bsd/openssl/lib/libdes/
H A 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))
H A Doofb64ede.c67 des_key_schedule k2, des_key_schedule k3, des_cblock *ivec, in des_ede3_ofb64_encrypt() argument
93 des_encrypt3(ti,k1,k2,k3); in des_ede3_ofb64_encrypt()
120 des_key_schedule k2, des_cblock (*ivec), int *num) in des_ede2_ofb64_encrypt() argument
122 des_ede3_ofb64_encrypt(in, out, length, k1,k2,k1, ivec, num); in des_ede2_ofb64_encrypt()
/netbsd-src/sys/external/isc/libsodium/dist/test/default/
H A Dbox_easy2.c21 unsigned char *k2; in main() local
44 k2 = (unsigned char *) sodium_malloc(crypto_box_BEFORENMBYTES); in main()
81 ret = crypto_box_beforenm(k2, small_order_p, alicesk); in main()
86 ret = crypto_box_beforenm(k2, bobpk, alicesk); in main()
99 k2) != 0) { in main()
104 k2) == 0) { in main()
130 nonce, k2) != 0) { in main()
142 sodium_free(k2); in main()
/netbsd-src/lib/libc/db/btree/
H A Dbt_utils.c152 DBT k2; in __bt_cmp() local
173 k2.data = bl->bytes; in __bt_cmp()
174 k2.size = bl->ksize; in __bt_cmp()
181 k2.data = bi->bytes; in __bt_cmp()
182 k2.size = bi->ksize; in __bt_cmp()
188 &k2.size, &t->bt_rdata.data, &t->bt_rdata.size)) in __bt_cmp()
190 k2.data = t->bt_rdata.data; in __bt_cmp()
192 return ((*t->bt_cmp)(k1, &k2)); in __bt_cmp()
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Ddes.h54 # define DES_ecb2_encrypt(i,o,k1,k2,e) \ argument
55 DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))
57 # define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \ argument
58 DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))
60 # define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \ argument
61 DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))
63 # define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \ argument
64 DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))
/netbsd-src/external/gpl3/gcc.old/dist/gcc/analyzer/
H A Dexploded-graph.h420 static inline bool equal_keys (const key_type &k1, const key_type &k2) in equal_keys()
423 gcc_assert (k2 != NULL); in equal_keys()
425 gcc_assert (k2 != reinterpret_cast<key_type> (1)); in equal_keys()
426 if (k1 && k2) in equal_keys()
427 return *k1 == *k2; in equal_keys()
430 return k1 == k2; in equal_keys()
490 static inline bool equal_keys (const key_type &k1, const key_type &k2) in equal_keys()
493 gcc_assert (k2 != NULL); in equal_keys()
495 gcc_assert (k2 != reinterpret_cast<key_type> (1)); in equal_keys()
496 if (k1 && k2) in equal_keys()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/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))
/netbsd-src/external/gpl3/gcc/dist/gcc/analyzer/
H A Dexploded-graph.h484 static inline bool equal_keys (const key_type &k1, const key_type &k2) in equal_keys()
487 gcc_assert (k2 != NULL); in equal_keys()
489 gcc_assert (k2 != reinterpret_cast<key_type> (1)); in equal_keys()
490 if (k1 && k2) in equal_keys()
491 return *k1 == *k2; in equal_keys()
494 return k1 == k2; in equal_keys()
554 static inline bool equal_keys (const key_type &k1, const key_type &k2) in equal_keys()
557 gcc_assert (k2 != NULL); in equal_keys()
559 gcc_assert (k2 != reinterpret_cast<key_type> (1)); in equal_keys()
560 if (k1 && k2) in equal_keys()
[all …]
/netbsd-src/tests/lib/libc/gen/
H A Dt_ftok.c65 key_t k1, k2, k3; in ATF_TC_BODY() local
76 k2 = ftok(hlnk, key); in ATF_TC_BODY()
80 ATF_REQUIRE(k2 != -1); in ATF_TC_BODY()
83 if (k1 != k2) in ATF_TC_BODY()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Ddestest.c73 unsigned char k1[8], k2[8], k3[8], in ebc3_test() local
78 memcpy(k2, key2, 8); in ebc3_test()
83 DES_set_odd_parity(&k2); in ebc3_test()
86 DES_set_key_unchecked(&k2, &s2); in ebc3_test()
148 unsigned char k1[8], k2[8], k3[8], in cbc3_test() local
154 memcpy(k2, key2, 8); in cbc3_test()
160 DES_set_odd_parity(&k2); in cbc3_test()
163 DES_set_key_unchecked(&k2, &s2); in cbc3_test()
/netbsd-src/tests/usr.bin/sort/
H A Dt_sort.sh204 atf_check -o file:expout sort -k2.1 in
227 atf_check -o file:expout sort -k2.1,2.0 in
262 -k2 -k1 in
281 atf_check -o file:in sort -k2.2,2.1 -k2.3,2.4 in
298 atf_check -o file:in sort -k2,1.3 -k2.5,2.5 in
702 atf_check -o file:in sort -tX -k2 -k1r,1 in
742 atf_check -o file:in sort -t ' ' -k2,2 in
743 atf_check -o file:in sort -t ' ' -k2.1,2.0 in
751 atf_check -o file:out sort -t ' ' -k2,2 in
752 atf_check -o file:out sort -t ' ' -k2.1,2.0 in
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/cmac/
H A Dcmac.c22 unsigned char k2[EVP_MAX_BLOCK_LENGTH]; member
68 OPENSSL_cleanse(ctx->k2, EVP_MAX_BLOCK_LENGTH); in CMAC_CTX_cleanup()
96 memcpy(out->k2, in->k2, bl); in CMAC_CTX_copy()
141 make_kn(ctx->k2, ctx->k1, bl); in CMAC_Init()
212 out[i] = ctx->last_block[i] ^ ctx->k2[i]; in CMAC_Final()
/netbsd-src/external/bsd/wpa/dist/src/crypto/
H A Daes-siv.c126 const u8 *k1, *k2; in aes_siv_encrypt() local
137 k2 = key + key_len; in aes_siv_encrypt()
158 return aes_ctr_encrypt(k2, key_len, v, crypt_pw, pwlen); in aes_siv_encrypt()
169 const u8 *k1, *k2; in aes_siv_decrypt() local
182 k2 = key + key_len; in aes_siv_decrypt()
197 ret = aes_ctr_encrypt(k2, key_len, iv, out, crypt_len); in aes_siv_decrypt()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/base/
H A Dtest_base.c386 heim_string_t k2 = heim_string_create("k2"); in test_path() local
441 o = heim_path_get(dict, NULL, k2, NULL); in test_path()
443 o = heim_path_get(dict, NULL, k2, k2_1, NULL); in test_path()
445 o = heim_path_get(dict, NULL, k2, k2_2, NULL); in test_path()
447 o = heim_path_get(dict, NULL, k2, k2_3, NULL); in test_path()
449 o = heim_path_get(dict, NULL, k2, k2_4, NULL); in test_path()
451 o = heim_path_get(dict, NULL, k2, k2_5, NULL); in test_path()
453 o = heim_path_get(dict, NULL, k2, k2_5, heim_number_create(0), NULL); in test_path()
455 o = heim_path_get(dict, NULL, k2, k2_5, heim_number_create(1), NULL); in test_path()
457 o = heim_path_get(dict, NULL, k2, k2_5, heim_number_create(3), k2_5_1, NULL); in test_path()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/cmac/
H A Dcmac.c28 unsigned char k2[EVP_MAX_BLOCK_LENGTH]; member
74 OPENSSL_cleanse(ctx->k2, EVP_MAX_BLOCK_LENGTH); in CMAC_CTX_cleanup()
104 memcpy(out->k2, in->k2, bl); in CMAC_CTX_copy()
151 make_kn(ctx->k2, ctx->k1, bl); in CMAC_Init()
228 out[i] = ctx->last_block[i] ^ ctx->k2[i]; in CMAC_Final()

12345678