/third_party/node/deps/openssl/openssl/crypto/dh/ |
H A D | dh_backend.c | 69 BIGNUM *priv_key = NULL, *pub_key = NULL; in ossl_dh_key_fromdata() local 79 && !OSSL_PARAM_get_BN(param_priv_key, &priv_key)) in ossl_dh_key_fromdata() 86 if (!DH_set0_key(dh, pub_key, priv_key)) in ossl_dh_key_fromdata() 92 BN_clear_free(priv_key); in ossl_dh_key_fromdata() 170 || !dh_bn_dup_check(&dupkey->priv_key, dh->priv_key))) in ossl_dh_dup()
|
H A D | dh_ameth.c | 199 prkey = BN_to_ASN1_INTEGER(pkey->pkey.dh->priv_key, NULL); in dh_priv_encode() 248 BIGNUM *priv_key, *pub_key; in do_dh_print() local 251 priv_key = x->priv_key; in do_dh_print() 253 priv_key = NULL; in do_dh_print() 260 if (x->params.p == NULL || (ptype == 2 && priv_key == NULL) in do_dh_print() 278 if (!ASN1_bn_print(bp, "private-key:", priv_key, NULL, indent)) in do_dh_print() 461 const BIGNUM *priv_key = DH_get0_priv_key(dh); in dh_pkey_export_to() local 490 if (priv_key != NULL) { in dh_pkey_export_to() 492 priv_key)) in dh_pkey_export_to() [all...] |
H A D | dh_check.c | 278 int ossl_dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret) in ossl_dh_check_priv_key() argument 300 if (BN_num_bits(priv_key) <= length in ossl_dh_check_priv_key() 301 && BN_num_bits(priv_key) > 1) in ossl_dh_check_priv_key() 303 } else if (BN_num_bits(priv_key) == length) { in ossl_dh_check_priv_key() 319 if (!ossl_ffc_validate_private_key(upper, priv_key, ret)) in ossl_dh_check_priv_key() 340 || dh->priv_key == NULL in ossl_dh_check_pairwise() 352 if (!ossl_dh_generate_public_key(ctx, dh, dh->priv_key, pub_key)) in ossl_dh_check_pairwise()
|
/third_party/openssl/crypto/dh/ |
H A D | dh_backend.c | 69 BIGNUM *priv_key = NULL, *pub_key = NULL; in ossl_dh_key_fromdata() local 79 && !OSSL_PARAM_get_BN(param_priv_key, &priv_key)) in ossl_dh_key_fromdata() 86 if (!DH_set0_key(dh, pub_key, priv_key)) in ossl_dh_key_fromdata() 92 BN_clear_free(priv_key); in ossl_dh_key_fromdata() 170 || !dh_bn_dup_check(&dupkey->priv_key, dh->priv_key))) in ossl_dh_dup()
|
H A D | dh_ameth.c | 199 prkey = BN_to_ASN1_INTEGER(pkey->pkey.dh->priv_key, NULL); in dh_priv_encode() 248 BIGNUM *priv_key, *pub_key; in do_dh_print() local 251 priv_key = x->priv_key; in do_dh_print() 253 priv_key = NULL; in do_dh_print() 260 if (x->params.p == NULL || (ptype == 2 && priv_key == NULL) in do_dh_print() 278 if (!ASN1_bn_print(bp, "private-key:", priv_key, NULL, indent)) in do_dh_print() 461 const BIGNUM *priv_key = DH_get0_priv_key(dh); in dh_pkey_export_to() local 490 if (priv_key != NULL) { in dh_pkey_export_to() 492 priv_key)) in dh_pkey_export_to() [all...] |
H A D | dh_check.c | 276 int ossl_dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret) in ossl_dh_check_priv_key() argument 298 if (BN_num_bits(priv_key) <= length in ossl_dh_check_priv_key() 299 && BN_num_bits(priv_key) > 1) in ossl_dh_check_priv_key() 301 } else if (BN_num_bits(priv_key) == length) { in ossl_dh_check_priv_key() 317 if (!ossl_ffc_validate_private_key(upper, priv_key, ret)) in ossl_dh_check_priv_key() 338 || dh->priv_key == NULL in ossl_dh_check_pairwise() 350 if (!ossl_dh_generate_public_key(ctx, dh, dh->priv_key, pub_key)) in ossl_dh_check_pairwise()
|
/third_party/openssl/demos/signature/ |
H A D | EVP_Signature_demo.c | 41 * For demo_sign, load EC private key priv_key from priv_key_der[]. 78 EVP_PKEY *priv_key = NULL; in demo_sign() local 81 priv_key = get_key(libctx, propq, public); in demo_sign() 82 if (priv_key == NULL) { in demo_sign() 100 libctx, NULL, priv_key, NULL)) { in demo_sign() 145 EVP_PKEY_free(priv_key); in demo_sign()
|
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_backend.c | 400 BIGNUM *priv_key = NULL; in ossl_ec_key_fromdata() local 471 if ((priv_key = BN_secure_new()) == NULL) in ossl_ec_key_fromdata() 473 if (bn_wexpand(priv_key, fixed_words) == NULL) in ossl_ec_key_fromdata() 475 BN_set_flags(priv_key, BN_FLG_CONSTTIME); in ossl_ec_key_fromdata() 477 if (!OSSL_PARAM_get_BN(param_priv_key, &priv_key)) in ossl_ec_key_fromdata() 481 if (priv_key != NULL in ossl_ec_key_fromdata() 482 && !EC_KEY_set_private_key(ec, priv_key)) in ossl_ec_key_fromdata() 493 BN_clear_free(priv_key); in ossl_ec_key_fromdata() 642 if (src->priv_key != NULL in ossl_ec_key_dup() 647 ret->priv_key in ossl_ec_key_dup() [all...] |
H A D | ecdsa_ossl.c | 94 const BIGNUM *priv_key; in ecdsa_sign_setup() local 100 if ((priv_key = EC_KEY_get0_private_key(eckey)) == NULL) { in ecdsa_sign_setup() 143 if (!BN_generate_dsa_nonce(k, order, priv_key, in ecdsa_sign_setup() 215 const BIGNUM *priv_key; in ossl_ecdsa_simple_sign_sig() local 218 priv_key = EC_KEY_get0_private_key(eckey); in ossl_ecdsa_simple_sign_sig() 224 if (priv_key == NULL) { in ossl_ecdsa_simple_sign_sig() 292 || !bn_mul_mont_fixed_top(s, s, priv_key, group->mont_data, ctx)) { in ossl_ecdsa_simple_sign_sig()
|
/third_party/openssl/crypto/ec/ |
H A D | ec_backend.c | 400 BIGNUM *priv_key = NULL; in ossl_ec_key_fromdata() local 471 if ((priv_key = BN_secure_new()) == NULL) in ossl_ec_key_fromdata() 473 if (bn_wexpand(priv_key, fixed_words) == NULL) in ossl_ec_key_fromdata() 475 BN_set_flags(priv_key, BN_FLG_CONSTTIME); in ossl_ec_key_fromdata() 477 if (!OSSL_PARAM_get_BN(param_priv_key, &priv_key)) in ossl_ec_key_fromdata() 481 if (priv_key != NULL in ossl_ec_key_fromdata() 482 && !EC_KEY_set_private_key(ec, priv_key)) in ossl_ec_key_fromdata() 493 BN_clear_free(priv_key); in ossl_ec_key_fromdata() 642 if (src->priv_key != NULL in ossl_ec_key_dup() 647 ret->priv_key in ossl_ec_key_dup() [all...] |
H A D | ecdsa_ossl.c | 99 const BIGNUM *priv_key; in ecdsa_sign_setup() local 105 if ((priv_key = EC_KEY_get0_private_key(eckey)) == NULL) { in ecdsa_sign_setup() 148 if (!BN_generate_dsa_nonce(k, order, priv_key, in ecdsa_sign_setup() 220 const BIGNUM *priv_key; in ossl_ecdsa_simple_sign_sig() local 223 priv_key = EC_KEY_get0_private_key(eckey); in ossl_ecdsa_simple_sign_sig() 229 if (priv_key == NULL) { in ossl_ecdsa_simple_sign_sig() 297 || !bn_mul_mont_fixed_top(s, s, priv_key, group->mont_data, ctx)) { in ossl_ecdsa_simple_sign_sig()
|
/third_party/node/deps/openssl/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2text.c | 220 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dh_to_text() local 238 priv_key = DH_get0_priv_key(dh); in dh_to_text() 239 if (priv_key == NULL) { in dh_to_text() 267 if (priv_key != NULL in dh_to_text() 268 && !print_labeled_bignum(out, "private-key:", priv_key)) in dh_to_text() 296 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dsa_to_text() local 313 priv_key = DSA_get0_priv_key(dsa); in dsa_to_text() 314 if (priv_key == NULL) { in dsa_to_text() 342 if (priv_key != NULL in dsa_to_text() 343 && !print_labeled_bignum(out, "priv:", priv_key)) in dsa_to_text() 518 const BIGNUM *priv_key = EC_KEY_get0_private_key(ec); ec_to_text() local [all...] |
/third_party/openssl/providers/implementations/encode_decode/ |
H A D | encode_key2text.c | 220 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dh_to_text() local 238 priv_key = DH_get0_priv_key(dh); in dh_to_text() 239 if (priv_key == NULL) { in dh_to_text() 267 if (priv_key != NULL in dh_to_text() 268 && !print_labeled_bignum(out, "private-key:", priv_key)) in dh_to_text() 296 const BIGNUM *priv_key = NULL, *pub_key = NULL; in dsa_to_text() local 313 priv_key = DSA_get0_priv_key(dsa); in dsa_to_text() 314 if (priv_key == NULL) { in dsa_to_text() 342 if (priv_key != NULL in dsa_to_text() 343 && !print_labeled_bignum(out, "priv:", priv_key)) in dsa_to_text() 518 const BIGNUM *priv_key = EC_KEY_get0_private_key(ec); ec_to_text() local [all...] |
/third_party/openssl/crypto/dsa/ |
H A D | dsa_check.c | 87 int ossl_dsa_check_priv_key(const DSA *dsa, const BIGNUM *priv_key, int *ret) in ossl_dsa_check_priv_key() argument 94 return ossl_ffc_validate_private_key(dsa->params.q, priv_key, ret); in ossl_dsa_check_priv_key() 111 || dsa->priv_key == NULL in ossl_dsa_check_pairwise() 123 if (!ossl_dsa_generate_public_key(ctx, dsa, dsa->priv_key, pub_key)) in ossl_dsa_check_pairwise()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | dpp_backup.c | 37 struct wpabuf *buf, *priv_key = NULL; in dpp_build_conf_params() local 46 priv_key = crypto_ec_key_get_ecprivate_key(conf->pp_key, false); in dpp_build_conf_params() 47 if (!priv_key) in dpp_build_conf_params() 53 if (priv_key) in dpp_build_conf_params() 54 len += wpabuf_len(priv_key); in dpp_build_conf_params() 67 asn1_put_octet_string(buf, priv_key); in dpp_build_conf_params() 72 wpabuf_clear_free(priv_key); in dpp_build_conf_params() 75 wpabuf_clear_free(priv_key); in dpp_build_conf_params() 153 struct wpabuf *key = NULL, *attr, *alg, *priv_key = NULL; in dpp_build_key_pkg() local 155 priv_key in dpp_build_key_pkg() [all...] |
/third_party/libcoap/src/ |
H A D | coap_tinydtls.c | 47 coap_binary_t *priv_key; member 554 ecdsa_key.priv_key = t_context->priv_key->s; in get_ecdsa_key() 667 if (t_context->priv_key) { in coap_dtls_free_context() 668 coap_delete_binary(t_context->priv_key); in coap_dtls_free_context() 669 t_context->priv_key = NULL; in coap_dtls_free_context() 1107 t_context->priv_key = get_asn1_tag(COAP_ASN1_OCTETSTRING, priv_data, in asn1_derive_keys() 1109 if (!t_context->priv_key) { in asn1_derive_keys() 1114 if (t_context->priv_key->length - 1 == DTLS_EC_KEY_SIZE && in asn1_derive_keys() 1115 t_context->priv_key in asn1_derive_keys() [all...] |
/third_party/node/deps/openssl/openssl/crypto/pem/ |
H A D | pvkfmt.c | 379 BIGNUM *pbn = NULL, *qbn = NULL, *gbn = NULL, *priv_key = NULL; in ossl_b2i_DSA_after_header() local 399 if (!read_lebn(&p, 20, &priv_key)) in ossl_b2i_DSA_after_header() 403 BN_set_flags(priv_key, BN_FLG_CONSTTIME); in ossl_b2i_DSA_after_header() 412 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx)) in ossl_b2i_DSA_after_header() 421 if (!DSA_set0_key(dsa, pub_key, priv_key)) in ossl_b2i_DSA_after_header() 423 pub_key = priv_key = NULL; in ossl_b2i_DSA_after_header() 435 BN_free(priv_key); in ossl_b2i_DSA_after_header() 691 const BIGNUM *pub_key = NULL, *priv_key = NULL; in check_bitlen_dsa() local 694 DSA_get0_key(dsa, &pub_key, &priv_key); in check_bitlen_dsa() 704 if (BN_num_bits(priv_key) > 16 in check_bitlen_dsa() 719 const BIGNUM *pub_key = NULL, *priv_key = NULL; write_dsa() local [all...] |
/third_party/openssl/crypto/pem/ |
H A D | pvkfmt.c | 379 BIGNUM *pbn = NULL, *qbn = NULL, *gbn = NULL, *priv_key = NULL; in ossl_b2i_DSA_after_header() local 399 if (!read_lebn(&p, 20, &priv_key)) in ossl_b2i_DSA_after_header() 403 BN_set_flags(priv_key, BN_FLG_CONSTTIME); in ossl_b2i_DSA_after_header() 412 if (!BN_mod_exp(pub_key, gbn, priv_key, pbn, ctx)) in ossl_b2i_DSA_after_header() 421 if (!DSA_set0_key(dsa, pub_key, priv_key)) in ossl_b2i_DSA_after_header() 423 pub_key = priv_key = NULL; in ossl_b2i_DSA_after_header() 435 BN_free(priv_key); in ossl_b2i_DSA_after_header() 691 const BIGNUM *pub_key = NULL, *priv_key = NULL; in check_bitlen_dsa() local 694 DSA_get0_key(dsa, &pub_key, &priv_key); in check_bitlen_dsa() 704 if (BN_num_bits(priv_key) > 16 in check_bitlen_dsa() 719 const BIGNUM *pub_key = NULL, *priv_key = NULL; write_dsa() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | libssh.c | 41 char *priv_key; member 86 if (libssh->priv_key) { in libssh_authentication() 88 ssh_private_key priv_key; in libssh_authentication() local 90 if (!ssh_try_publickey_from_file(libssh->session, libssh->priv_key, &pub_key, &type)) { in libssh_authentication() 91 priv_key = privatekey_from_file(libssh->session, libssh->priv_key, type, password); in libssh_authentication() 92 if (ssh_userauth_pubkey(libssh->session, NULL, pub_key, priv_key) == SSH_AUTH_SUCCESS) { in libssh_authentication() 481 {"private_key", "set path to private key", OFFSET(priv_key), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D|E },
|
H A D | rtmpdh.c | 231 bn_new(dh->priv_key); in dh_generate_key() 232 if (!dh->priv_key) in dh_generate_key() 234 bn_random(dh->priv_key, 8 * num_bytes); in dh_generate_key() 238 bn_free(dh->priv_key); in dh_generate_key() 242 if (bn_modexp(dh->pub_key, dh->g, dh->priv_key, dh->p) < 0) in dh_generate_key() 258 if ((ret = bn_modexp(k, pub_key_bn, dh->priv_key, dh->p)) < 0) { in dh_compute_key() 276 bn_free(dh->priv_key); in ff_dh_free()
|
H A D | tls_mbedtls.c | 45 mbedtls_pk_context priv_key; member 56 mbedtls_pk_free(&tls_ctx->priv_key); in tls_close() 185 mbedtls_pk_init(&tls_ctx->priv_key); in tls_open() 214 if ((ret = mbedtls_pk_parse_keyfile(&tls_ctx->priv_key, in tls_open() 241 if ((ret = mbedtls_ssl_conf_own_cert(&tls_ctx->ssl_config, &tls_ctx->own_cert, &tls_ctx->priv_key)) != 0) { in tls_open()
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | dsa.h | 39 const BIGNUM *priv_key, BIGNUM *pub_key); 44 int ossl_dsa_check_priv_key(const DSA *dsa, const BIGNUM *priv_key, int *ret);
|
H A D | dh.h | 25 const BIGNUM *priv_key, BIGNUM *pub_key); 44 int ossl_dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret);
|
/third_party/openssl/include/crypto/ |
H A D | dsa.h | 39 const BIGNUM *priv_key, BIGNUM *pub_key); 44 int ossl_dsa_check_priv_key(const DSA *dsa, const BIGNUM *priv_key, int *ret);
|
H A D | dh.h | 25 const BIGNUM *priv_key, BIGNUM *pub_key); 44 int ossl_dh_check_priv_key(const DH *dh, const BIGNUM *priv_key, int *ret);
|