Home
last modified time | relevance | path

Searched refs:Qi (Results 1 - 5 of 5) sorted by relevance

/third_party/node/deps/v8/src/bigint/
H A Ddiv-burnikel.cc243 // for Qi...
244 ScratchDigits Qi(n);
245 bz.D2n1n(Qi, Ri, Z, B);
248 Qi.Normalize();
250 DCHECK(Qi.len() <= target.len());
251 PutAt(target, Qi, target.len());
259 // 8a. Using algorithm D2n1n compute Qi, Ri such that Zi = B*Qi + Ri.
260 RWDigits Qi(Q, i * n, n);
261 bz.D2n1n(Qi, R
[all...]
H A Ddiv-barrett.cc323 ScratchDigits Qi(qi_len); in DivideBarrett()
328 DivideBarrett(Qi, Ri, Z, B, I, scratch); in DivideBarrett()
333 for (int j = 0; j < to_copy; j++) target[j] = Qi[j]; in DivideBarrett()
336 for (int j = to_copy; j < Qi.len(); j++) { in DivideBarrett()
337 DCHECK(Qi[j] == 0); in DivideBarrett()
347 // (8a): Compute Qi, Ri such that Zi = B*Qi + Ri. in DivideBarrett()
348 DivideBarrett(Qi, Ri, Z, B, I, scratch); in DivideBarrett()
349 DCHECK(Qi[qi_len - 1] == 0); in DivideBarrett()
352 PutAt(Q + n * i, Qi, in DivideBarrett()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A Ddpp_pkex.c34 struct crypto_ec_point *Qi = NULL, *M = NULL; in dpp_pkex_build_exchange_req() local
43 /* Qi = H([MAC-Initiator |] [identifier |] code) * Pi */ in dpp_pkex_build_exchange_req()
44 Qi = dpp_pkex_derive_Qi(curve, v2 ? NULL : pkex->own_mac, pkex->code, in dpp_pkex_build_exchange_req()
46 if (!Qi) in dpp_pkex_build_exchange_req()
68 /* M = X + Qi */ in dpp_pkex_build_exchange_req()
75 if (crypto_ec_point_add(ec, X, Qi, M)) in dpp_pkex_build_exchange_req()
154 crypto_ec_point_deinit(Qi, 1); in dpp_pkex_build_exchange_req()
351 struct crypto_ec_point *Qi = NULL, *Qr = NULL, *M = NULL, *X = NULL, in dpp_pkex_rx_exchange_req() local
440 /* Qi = H([MAC-Initiator |] [identifier |] code) * Pi */ in dpp_pkex_rx_exchange_req()
441 Qi in dpp_pkex_rx_exchange_req()
[all...]
H A Ddpp_crypto.c1444 struct crypto_ec_point *Qi = NULL; in dpp_pkex_derive_Qi() local
1450 /* Qi = H([MAC-Initiator |] [identifier |] code) * Pi */ in dpp_pkex_derive_Qi()
1485 Qi = crypto_ec_point_init(ec); in dpp_pkex_derive_Qi()
1487 if (!Pi || !Qi || !hash_bn || crypto_ec_point_mul(ec, Pi, hash_bn, Qi)) in dpp_pkex_derive_Qi()
1490 if (crypto_ec_point_is_at_infinity(ec, Qi)) { in dpp_pkex_derive_Qi()
1491 wpa_printf(MSG_INFO, "DPP: Qi is the point-at-infinity"); in dpp_pkex_derive_Qi()
1494 crypto_ec_point_debug_print(ec, Qi, "DPP: Qi"); in dpp_pkex_derive_Qi()
1498 if (ret_ec && Qi) in dpp_pkex_derive_Qi()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
H A Ddpp.c6669 EC_POINT *Qi = NULL; in dpp_pkex_derive_Qi() local
6677 /* Qi = H(MAC-Initiator | [identifier |] code) * Pi */ in dpp_pkex_derive_Qi()
6714 Qi = EC_POINT_new(group2); in dpp_pkex_derive_Qi()
6715 if (!Qi) { in dpp_pkex_derive_Qi()
6721 EC_POINT_mul(group2, Qi, NULL, Pi_point, hash_bn, bnctx) != 1) in dpp_pkex_derive_Qi()
6723 if (EC_POINT_is_at_infinity(group, Qi)) { in dpp_pkex_derive_Qi()
6724 wpa_printf(MSG_INFO, "DPP: Qi is the point-at-infinity"); in dpp_pkex_derive_Qi()
6727 dpp_debug_print_point("DPP: Qi", group, Qi); in dpp_pkex_derive_Qi()
6732 if (ret_group && Qi) in dpp_pkex_derive_Qi()
6901 EC_POINT *Qi = NULL, *M = NULL; dpp_pkex_build_exchange_req() local
7265 EC_POINT *Qi = NULL, *Qr = NULL, *M = NULL, *X = NULL, *N = NULL; dpp_pkex_rx_exchange_req() local
[all...]

Completed in 18 milliseconds