Home
last modified time | relevance | path

Searched refs:ck (Results 1 – 25 of 242) sorted by relevance

12345678910

/third_party/libwebsockets/minimal-examples/api-tests/api-test-cose/
Dkeys.c662 struct lws_cose_key *ck; in test_cose_keys() local
722 ck = lws_cose_key_import(NULL, key_import_cb, NULL, cose_key1, sizeof(cose_key1)); in test_cose_keys()
723 if (!ck) in test_cose_keys()
726 if (ck->kty != LWSCOSE_WKKTV_EC2 || in test_cose_keys()
727 ck->gencrypto_kty != LWS_GENCRYPTO_KTY_EC || in test_cose_keys()
728 ck->e[LWS_GENCRYPTO_EC_KEYEL_X].len != sizeof(key1_x) || in test_cose_keys()
729 ck->e[LWS_GENCRYPTO_EC_KEYEL_Y].len != sizeof(key1_y) || in test_cose_keys()
730 ck->e[LWS_GENCRYPTO_EC_KEYEL_D].len != sizeof(key1_d) || in test_cose_keys()
731 memcmp(ck->e[LWS_GENCRYPTO_EC_KEYEL_X].buf, key1_x, sizeof(key1_x)) || in test_cose_keys()
732 memcmp(ck->e[LWS_GENCRYPTO_EC_KEYEL_Y].buf, key1_y, sizeof(key1_y)) || in test_cose_keys()
[all …]
/third_party/libwebsockets/lib/cose/
Dcose_key.c36 struct lws_cose_key *ck; member
83 lws_cose_key_dump(const struct lws_cose_key *ck) in lws_cose_key_dump() argument
93 switch (ck->gencrypto_kty) { in lws_cose_key_dump()
109 lwsl_err("%s: jwk %p: unknown type\n", __func__, ck); in lws_cose_key_dump()
114 lwsl_cose("%s: cose_key %p, kty: %lld (gc %d)\n", __func__, ck, in lws_cose_key_dump()
115 (long long)ck->kty, ck->gencrypto_kty); in lws_cose_key_dump()
118 if (ck->meta[n].buf) { in lws_cose_key_dump()
119 lws_hex_from_byte_array(ck->meta[n].buf, ck->meta[n].len, in lws_cose_key_dump()
126 if (ck->e[n].buf) { in lws_cose_key_dump()
127 lws_hex_from_byte_array(ck->e[n].buf, ck->e[n].len, in lws_cose_key_dump()
[all …]
Dcose_sign_alg.c29 lws_cose_sign_alg_create(struct lws_context *cx, const lws_cose_key_t *ck, in lws_cose_sign_alg_create() argument
42 alg->cose_key = ck; in lws_cose_sign_alg_create()
66 if (lws_cose_key_checks(ck, LWSCOSE_WKKTV_EC2, cose_alg, in lws_cose_sign_alg_create()
79 if (lws_genecdsa_set_key(&alg->u.ecdsactx, ck->e)) { in lws_cose_sign_alg_create()
105 if (lws_cose_key_checks(ck, LWSCOSE_WKKTV_SYMMETRIC, in lws_cose_sign_alg_create()
109 ke = &ck->e[LWS_GENCRYPTO_OCT_KEYEL_K]; in lws_cose_sign_alg_create()
129 if (lws_cose_key_checks(ck, LWSCOSE_WKKTV_RSA, cose_alg, in lws_cose_sign_alg_create()
133 alg->keybits = (int)ck->e[LWS_GENCRYPTO_RSA_KEYEL_N].len * 8; in lws_cose_sign_alg_create()
138 if (lws_genrsa_create(&alg->u.rsactx, ck->e, cx, in lws_cose_sign_alg_create()
Dcose_validate_alg.c29 lws_cose_val_alg_create(struct lws_context *cx, lws_cose_key_t *ck, in lws_cose_val_alg_create() argument
42 alg->cose_key = ck; in lws_cose_val_alg_create()
66 if (lws_cose_key_checks(ck, LWSCOSE_WKKTV_EC2, cose_alg, in lws_cose_val_alg_create()
79 if (lws_genecdsa_set_key(&alg->u.ecdsactx, ck->e)) { in lws_cose_val_alg_create()
105 if (lws_cose_key_checks(ck, LWSCOSE_WKKTV_SYMMETRIC, in lws_cose_val_alg_create()
109 ke = &ck->e[LWS_GENCRYPTO_OCT_KEYEL_K]; in lws_cose_val_alg_create()
129 if (lws_cose_key_checks(ck, LWSCOSE_WKKTV_RSA, cose_alg, in lws_cose_val_alg_create()
132 alg->keybits = (int)ck->e[LWS_GENCRYPTO_RSA_KEYEL_N].len * 8; in lws_cose_val_alg_create()
137 if (lws_genrsa_create(&alg->u.rsactx, ck->e, cx, in lws_cose_val_alg_create()
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-key/
Dmain.c35 cose_key_dump(const struct lws_cose_key *ck) in cose_key_dump() argument
46 switch (ck->gencrypto_kty) { in cose_key_dump()
62 lwsl_err("%s: jwk %p: unknown type\n", __func__, ck); in cose_key_dump()
68 if (ck->meta[n].buf) { in cose_key_dump()
72 (int)ck->meta[n].len, in cose_key_dump()
73 ck->meta[n].buf); in cose_key_dump()
79 lws_hex_from_byte_array(ck->meta[n].buf, in cose_key_dump()
80 ck->meta[n].len, in cose_key_dump()
89 if (ck->e[n].buf) { in cose_key_dump()
90 if (!n && ck->gencrypto_kty == LWS_GENCRYPTO_KTY_EC) { in cose_key_dump()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dmilenage.c89 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar) in milenage_f2345() argument
121 if (ck) { in milenage_f2345()
126 if (aes_128_encrypt_block(k, tmp1, ck)) in milenage_f2345()
129 ck[i] ^= opc[i]; in milenage_f2345()
175 u8 *ck, u8 *res, size_t *res_len) in milenage_generate() argument
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) { in milenage_generate()
237 u8 res[8], ck[16], ik[16]; in gsm_milenage() local
240 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL)) in gsm_milenage()
244 kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8]; in gsm_milenage()
271 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len, in milenage_check() argument
[all …]
Dmilenage.h14 u8 *ck, u8 *res, size_t *res_len);
20 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len,
25 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dmilenage.c89 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar) in milenage_f2345() argument
121 if (ck) { in milenage_f2345()
126 if (aes_128_encrypt_block(k, tmp1, ck)) in milenage_f2345()
129 ck[i] ^= opc[i]; in milenage_f2345()
175 u8 *ck, u8 *res, size_t *res_len) in milenage_generate() argument
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) { in milenage_generate()
237 u8 res[8], ck[16], ik[16]; in gsm_milenage() local
240 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL)) in gsm_milenage()
244 kc[i] = ck[i] ^ ck[i + 8] ^ ik[i] ^ ik[i + 8]; in gsm_milenage()
271 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len, in milenage_check() argument
[all …]
Dmilenage.h14 u8 *ck, u8 *res, size_t *res_len);
20 const u8 *autn, u8 *ik, u8 *ck, u8 *res, size_t *res_len,
25 u8 *res, u8 *ck, u8 *ik, u8 *ak, u8 *akstar);
/third_party/curl/tests/data/
Dtest113622 Set-Cookie: test1=forbidden1; domain=example.ck; path=/;
23 Set-Cookie: test2=allowed2; domain=www.example.ck; path=/;
24 Set-Cookie: test3=forbidden3; domain=ck; path=/;
25 Set-Cookie: test4=allowed4; domain=www.ck; path=/;
49 http://www.example.ck/%TESTNUMBER http://www.ck/%TESTNUMBER http://z-1.compute-1.amazonaws.com/%TES…
62 .www.ck TRUE / FALSE 0 test4 allowed4
63 .www.example.ck TRUE / FALSE 0 test2 allowed2
/third_party/python/Lib/test/
Dtest_winreg.py314 with CreateKey(HKEY_CURRENT_USER, test_key_name) as ck:
315 self.assertNotEqual(ck.handle, 0)
337 with CreateKey(HKEY_CURRENT_USER, test_key_name) as ck:
338 self.assertNotEqual(ck.handle, 0)
339 SetValueEx(ck, "test_name", None, REG_DWORD, 0x80000000)
349 with CreateKey(HKEY_CURRENT_USER, test_key_name) as ck:
350 self.assertNotEqual(ck.handle, 0)
352 SetValueEx(ck, "test_name", None, REG_DWORD, test_val)
353 ret_val, ret_type = QueryValueEx(ck, "test_name")
362 with CreateKey(HKEY_CURRENT_USER, test_key_name) as ck:
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/video/
DextFFmpegDemuxer.h54 #define ck(call) check(call, __LINE__, __FILE__) macro
183 ck(api->avformat_find_stream_info(fmtc, NULL)); in FFmpegDemuxer()
254 ck(api->av_bsf_alloc(bsf, &bsfc)); in FFmpegDemuxer()
256 ck(api->av_bsf_init(bsfc)); in FFmpegDemuxer()
284 ck(api->avformat_open_input(&ctx, NULL, NULL, NULL)); in CreateFormatContext()
294 ck(api->avformat_open_input(&ctx, szFilePath, NULL, NULL)); in CreateFormatContext()
353 ck(api->av_bsf_send_packet(bsfc, &pkt)); in Demux()
354 ck(api->av_bsf_receive_packet(bsfc, &pktFiltered)); in Demux()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/video/
DextFFmpegDemuxer.h55 #define ck(call) check(call, __LINE__, __FILE__) macro
184 ck(api->avformat_find_stream_info(fmtc, NULL)); in FFmpegDemuxer()
255 ck(api->av_bsf_alloc(bsf, &bsfc)); in FFmpegDemuxer()
257 ck(api->av_bsf_init(bsfc)); in FFmpegDemuxer()
285 ck(api->avformat_open_input(&ctx, NULL, NULL, NULL)); in CreateFormatContext()
295 ck(api->avformat_open_input(&ctx, szFilePath, NULL, NULL)); in CreateFormatContext()
354 ck(api->av_bsf_send_packet(bsfc, &pkt)); in Demux()
355 ck(api->av_bsf_receive_packet(bsfc, &pktFiltered)); in Demux()
/third_party/node/deps/openssl/openssl/crypto/aria/
Daria.c543 const uint32_t *ck; in ossl_aria_set_encrypt_key() local
557 ck = &Key_RC[(bits - 128) / 64][0]; in ossl_aria_set_encrypt_key()
564 reg0 = w0[0] ^ ck[0]; in ossl_aria_set_encrypt_key()
565 reg1 = w0[1] ^ ck[1]; in ossl_aria_set_encrypt_key()
566 reg2 = w0[2] ^ ck[2]; in ossl_aria_set_encrypt_key()
567 reg3 = w0[3] ^ ck[3]; in ossl_aria_set_encrypt_key()
596 reg0 ^= ck[4]; in ossl_aria_set_encrypt_key()
597 reg1 ^= ck[5]; in ossl_aria_set_encrypt_key()
598 reg2 ^= ck[6]; in ossl_aria_set_encrypt_key()
599 reg3 ^= ck[7]; in ossl_aria_set_encrypt_key()
[all …]
/third_party/openssl/crypto/aria/
Daria.c543 const uint32_t *ck; in ossl_aria_set_encrypt_key() local
557 ck = &Key_RC[(bits - 128) / 64][0]; in ossl_aria_set_encrypt_key()
564 reg0 = w0[0] ^ ck[0]; in ossl_aria_set_encrypt_key()
565 reg1 = w0[1] ^ ck[1]; in ossl_aria_set_encrypt_key()
566 reg2 = w0[2] ^ ck[2]; in ossl_aria_set_encrypt_key()
567 reg3 = w0[3] ^ ck[3]; in ossl_aria_set_encrypt_key()
596 reg0 ^= ck[4]; in ossl_aria_set_encrypt_key()
597 reg1 ^= ck[5]; in ossl_aria_set_encrypt_key()
598 reg2 ^= ck[6]; in ossl_aria_set_encrypt_key()
599 reg3 ^= ck[7]; in ossl_aria_set_encrypt_key()
[all …]
/third_party/skia/third_party/externals/libjpeg-turbo/
Dcdjpeg.c99 register int ca, ck; in keymatch() local
103 if ((ck = *keyword++) == '\0') in keymatch()
107 if (ca != ck) in keymatch()
/third_party/libwebsockets/include/libwebsockets/
Dlws-cose.h315 lws_cose_key_export(lws_cose_key_t *ck, lws_lec_pctx_t *ctx, int flags);
338 lws_cose_key_destroy(lws_cose_key_t **ck);
346 lws_cose_key_dump(const lws_cose_key_t *ck);
502 const lws_cose_key_t *ck);
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_pax_common.c130 u8 *mk, u8 *ck, u8 *ick, u8 *mid) in eap_pax_initial_key_derivation() argument
136 e, 2 * EAP_PAX_RAND_LEN, EAP_PAX_CK_LEN, ck) || in eap_pax_initial_key_derivation()
145 wpa_hexdump_key(MSG_MSGDUMP, "EAP-PAX: CK", ck, EAP_PAX_CK_LEN); in eap_pax_initial_key_derivation()
Deap_sim_common.h79 const u8 *ik, const u8 *ck, u8 *mk);
93 const u8 *ik, const u8 *ck, u8 *k_encr,
104 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak,
110 const u8 *ik, const u8 *ck, in eap_aka_prime_derive_keys() argument
Deap_sim_common.c57 const u8 *ik, const u8 *ck, u8 *mk) in eap_aka_derive_mk() argument
66 addr[2] = ck; in eap_aka_derive_mk()
72 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA: CK", ck, EAP_AKA_CK_LEN); in eap_aka_derive_mk()
276 const u8 *ik, const u8 *ck, u8 *k_encr, in eap_aka_prime_derive_keys() argument
294 os_memcpy(key + EAP_AKA_IK_LEN, ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_keys()
424 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak, in eap_aka_prime_derive_ck_ik_prime() argument
458 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': CK", ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
465 os_memcpy(key, ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
487 os_memcpy(ck, hash, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
489 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': CK'", ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_pax_common.c130 u8 *mk, u8 *ck, u8 *ick, u8 *mid) in eap_pax_initial_key_derivation() argument
136 e, 2 * EAP_PAX_RAND_LEN, EAP_PAX_CK_LEN, ck) || in eap_pax_initial_key_derivation()
145 wpa_hexdump_key(MSG_MSGDUMP, "EAP-PAX: CK", ck, EAP_PAX_CK_LEN); in eap_pax_initial_key_derivation()
Deap_sim_common.h83 const u8 *ik, const u8 *ck, u8 *mk);
97 const u8 *ik, const u8 *ck, u8 *k_encr,
108 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak,
114 const u8 *ik, const u8 *ck, in eap_aka_prime_derive_keys() argument
Deap_sim_common.c61 const u8 *ik, const u8 *ck, u8 *mk) in eap_aka_derive_mk() argument
70 addr[2] = ck; in eap_aka_derive_mk()
76 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA: CK", ck, EAP_AKA_CK_LEN); in eap_aka_derive_mk()
280 const u8 *ik, const u8 *ck, u8 *k_encr, in eap_aka_prime_derive_keys() argument
298 os_memcpy(key + EAP_AKA_IK_LEN, ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_keys()
428 void eap_aka_prime_derive_ck_ik_prime(u8 *ck, u8 *ik, const u8 *sqn_ak, in eap_aka_prime_derive_ck_ik_prime() argument
462 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': CK", ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
469 os_memcpy(key, ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
491 os_memcpy(ck, hash, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
493 wpa_hexdump_key(MSG_DEBUG, "EAP-AKA': CK'", ck, EAP_AKA_CK_LEN); in eap_aka_prime_derive_ck_ik_prime()
/third_party/libphonenumber/resources/geocoding/de/
D352.txt69 3522481|Ettelbrück/Reckange-sur-Mess
127 3522681|Ettelbrück/Reckange-sur-Mess
180 3522781|Ettelbrück/Reckange-sur-Mess
230 35281|Ettelbrück
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-cose-sign/
Dmain.c107 lws_cose_key_t *ck = NULL; in main() local
274 ck = lws_cose_key_from_set(&set, kid, kid_len); in main()
275 if (!ck) in main()
278 if (lws_cose_sign_add(csc, alg, ck)) in main()

12345678910