Home | History | Annotate | Download | only in common

Lines Matching defs:pR

39 static void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr,
42 if (pr)
43 *pr = sig->r;
1566 /* R-auth = H(I-nonce | R-nonce | PI.x | PR.x | [BI.x |] BR.x | 0) */
1645 /* I-auth = H(R-nonce | I-nonce | PR.x | PI.x | BR.x | [BI.x |] 1) */
1722 EC_KEY *BI = NULL, *bR = NULL, *pR = NULL;
1730 /* L = ((bR + pR) modulo q) * BI */
1747 pR = EVP_PKEY_get1_EC_KEY(auth->own_protocol_key);
1748 if (!bR || !pR)
1751 pR_bn = EC_KEY_get0_private_key(pR);
1784 EC_KEY_free(pR);
1797 EC_KEY *bI = NULL, *BR = NULL, *PR = NULL;
1805 /* L = bI * (BR + PR) */
1812 PR = EVP_PKEY_get1_EC_KEY(auth->peer_protocol_key);
1813 if (!BR || !PR)
1816 PR_point = EC_KEY_get0_public_key(PR);
1854 EC_KEY_free(PR);
1866 struct wpabuf *msg, *pr = NULL;
1892 pr = dpp_get_pubkey_point(auth->own_protocol_key, 0);
1893 if (!pr)
1896 /* ECDH: N = pR * PI */
1928 /* R-auth = H(I-nonce | R-nonce | PI.x | PR.x | [BI.x |] BR.x | 0) */
1942 4 + wpabuf_len(pr) + 4 + sizeof(wrapped_data);
1972 wpabuf_put_le16(msg, wpabuf_len(pr));
1973 wpabuf_put_buf(msg, pr);
1974 wpabuf_free(pr);
1975 pr = NULL;
2040 wpabuf_free(pr);
2420 /* I-auth = H(R-nonce | I-nonce | PR.x | PI.x | BR.x | [BI.x |] 1) */
2534 EVP_PKEY *pr;
2628 /* N = pI * PR */
2629 pr = dpp_set_pubkey_point(auth->own_protocol_key, r_proto, r_proto_len);
2630 if (!pr) {
2634 dpp_debug_print_key("Peer (Responder) Protocol Key", pr);
2639 EVP_PKEY_derive_set_peer(ctx, pr) != 1 ||
2650 auth->peer_protocol_key = pr;
2651 pr = NULL;
2770 /* R-auth' = H(I-nonce | R-nonce | PI.x | PR.x | [BI.x |] BR.x | 0) */
2789 EVP_PKEY_free(pr);
2912 /* I-auth' = H(R-nonce | I-nonce | PR.x | PI.x | BR.x | [BI.x |] 1) */
4923 EVP_PKEY *Pr = NULL;
4930 /* Qr = H(MAC-Responder | | [identifier | ] code) * Pr */
4952 Pr = dpp_pkex_get_role_elem(curve, 0);
4953 if (!Pr)
4955 dpp_debug_print_key("DPP: Pr", Pr);
4956 Pr_ec = EVP_PKEY_get1_EC_KEY(Pr);
4978 EVP_PKEY_free(Pr);
5244 /* Qr = H(MAC-Responder | | [identifier | ] code) * Pr */
5460 /* Qr = H(MAC-Responder | [identifier |] code) * Pr */