/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
D | ecdsa.c | 147 const ECDSA_SIG *sig, const EC_KEY *eckey) { in ECDSA_do_verify() argument 148 const EC_GROUP *group = EC_KEY_get0_group(eckey); in ECDSA_do_verify() 149 const EC_POINT *pub_key = EC_KEY_get0_public_key(eckey); in ECDSA_do_verify() 190 static int ecdsa_sign_setup(const EC_KEY *eckey, EC_SCALAR *out_kinv_mont, in ecdsa_sign_setup() argument 195 const EC_GROUP *group = EC_KEY_get0_group(eckey); in ecdsa_sign_setup() 207 if (eckey->fixed_k != NULL) { in ecdsa_sign_setup() 208 if (!ec_bignum_to_scalar(group, &k, eckey->fixed_k)) { in ecdsa_sign_setup() 249 const EC_KEY *eckey) { in ECDSA_do_sign() argument 250 if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { in ECDSA_do_sign() 255 const EC_GROUP *group = EC_KEY_get0_group(eckey); in ECDSA_do_sign() [all …]
|
D | ecdsa_test.cc | 117 const ECDSA_SIG *ecdsa_sig, EC_KEY *eckey, in VerifyECDSASig() argument 126 ECDSA_verify(0, digest, digest_len, der, der_len, eckey)); in VerifyECDSASig() 132 ECDSA_do_verify(digest, digest_len, ecdsa_sig, eckey)); in VerifyECDSASig() 145 EC_KEY *eckey, const BIGNUM *order) { in TestTamperedSig() argument 170 VerifyECDSASig(api, digest, digest_len, ecdsa_sig, eckey, 0); in TestTamperedSig() 176 VerifyECDSASig(api, digest, digest_len, ecdsa_sig, eckey, 1); in TestTamperedSig() 209 bssl::UniquePtr<EC_KEY> eckey(EC_KEY_new()); in TEST() local 210 ASSERT_TRUE(eckey); in TEST() 211 ASSERT_TRUE(EC_KEY_set_group(eckey.get(), group.get())); in TEST() 212 ASSERT_TRUE(EC_KEY_generate_key(eckey.get())); in TEST() [all …]
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
D | ec_key.c | 294 int EC_KEY_check_key(const EC_KEY *eckey) { in EC_KEY_check_key() argument 299 if (!eckey || !eckey->group || !eckey->pub_key) { in EC_KEY_check_key() 304 if (EC_POINT_is_at_infinity(eckey->group, eckey->pub_key)) { in EC_KEY_check_key() 316 if (!EC_POINT_is_on_curve(eckey->group, eckey->pub_key, ctx)) { in EC_KEY_check_key() 322 if (eckey->priv_key != NULL) { in EC_KEY_check_key() 323 point = EC_POINT_new(eckey->group); in EC_KEY_check_key() 325 !ec_point_mul_scalar_base(eckey->group, &point->raw, in EC_KEY_check_key() 326 &eckey->priv_key->scalar)) { in EC_KEY_check_key() 330 if (EC_POINT_cmp(eckey->group, point, eckey->pub_key, ctx) != 0) { in EC_KEY_check_key() 456 int EC_KEY_generate_key_fips(EC_KEY *eckey) { in EC_KEY_generate_key_fips() argument [all …]
|
/external/boringssl/src/crypto/ecdsa_extra/ |
D | ecdsa_asn1.c | 70 unsigned int *sig_len, const EC_KEY *eckey) { in ECDSA_sign() argument 71 if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { in ECDSA_sign() 72 return eckey->ecdsa_meth->sign(digest, digest_len, sig, sig_len, in ECDSA_sign() 73 (EC_KEY*) eckey /* cast away const */); in ECDSA_sign() 77 ECDSA_SIG *s = ECDSA_do_sign(digest, digest_len, eckey); in ECDSA_sign() 86 if (!CBB_init_fixed(&cbb, sig, ECDSA_size(eckey)) || in ECDSA_sign() 103 const uint8_t *sig, size_t sig_len, const EC_KEY *eckey) { in ECDSA_verify() argument 123 ret = ECDSA_do_verify(digest, digest_len, s, eckey); in ECDSA_verify()
|
/external/boringssl/src/crypto/pem/ |
D | pem_all.c | 122 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 220 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) in IMPLEMENT_PEM_rw_const() 229 if (eckey) { in IMPLEMENT_PEM_rw_const() 230 EC_KEY_free(*eckey); in IMPLEMENT_PEM_rw_const() 231 *eckey = dtmp; in IMPLEMENT_PEM_rw_const() 249 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, in IMPLEMENT_PEM_write_cb() 254 return pkey_get_eckey(pktmp, eckey); /* will free pktmp */ in IMPLEMENT_PEM_write_cb()
|
/external/boringssl/src/crypto/evp/ |
D | p_ec_asn1.c | 97 EC_KEY *eckey = NULL; in eckey_pub_decode() local 104 eckey = EC_KEY_new(); in eckey_pub_decode() 105 if (eckey == NULL || !EC_KEY_set_group(eckey, group)) { in eckey_pub_decode() 112 !EC_KEY_set_public_key(eckey, point)) { in eckey_pub_decode() 118 EVP_PKEY_assign_EC_KEY(out, eckey); in eckey_pub_decode() 124 EC_KEY_free(eckey); in eckey_pub_decode()
|
D | p_ec.c | 149 EC_KEY *eckey; in pkey_ec_derive() local 156 eckey = ctx->pkey->pkey.ec; in pkey_ec_derive() 160 group = EC_KEY_get0_group(eckey); in pkey_ec_derive() 171 ret = ECDH_compute_key(key, outlen, pubkey, eckey, 0); in pkey_ec_derive()
|
/external/wpa_supplicant_8/src/common/ |
D | dpp_crypto.c | 167 EC_KEY *eckey; in dpp_debug_print_key() local 194 eckey = EVP_PKEY_get1_EC_KEY(key); in dpp_debug_print_key() 195 if (!eckey) in dpp_debug_print_key() 198 group = EC_KEY_get0_group(eckey); in dpp_debug_print_key() 199 point = EC_KEY_get0_public_key(eckey); in dpp_debug_print_key() 203 der_len = i2d_ECPrivateKey(eckey, &der); in dpp_debug_print_key() 209 der_len = i2d_EC_PUBKEY(eckey, &der); in dpp_debug_print_key() 215 EC_KEY_free(eckey); in dpp_debug_print_key() 369 EC_KEY *eckey; in dpp_get_pubkey_point() local 373 eckey = EVP_PKEY_get1_EC_KEY(pkey); in dpp_get_pubkey_point() [all …]
|
D | dpp_backup.c | 153 EC_KEY *eckey; in dpp_build_key_pkg() local 157 eckey = EVP_PKEY_get0_EC_KEY(auth->conf->csign); in dpp_build_key_pkg() 158 if (!eckey) in dpp_build_key_pkg() 161 EC_KEY_set_enc_flags(eckey, EC_PKEY_NO_PUBKEY); in dpp_build_key_pkg() 162 der_len = i2d_ECPrivateKey(eckey, &der); in dpp_build_key_pkg() 882 EC_KEY *eckey; in dpp_parse_one_asymmetric_key() local 959 eckey = d2i_ECPrivateKey(NULL, &hdr.payload, hdr.length); in dpp_parse_one_asymmetric_key() 960 if (!eckey) { in dpp_parse_one_asymmetric_key() 967 if (!key->csign || EVP_PKEY_assign_EC_KEY(key->csign, eckey) != 1) { in dpp_parse_one_asymmetric_key() 968 EC_KEY_free(eckey); in dpp_parse_one_asymmetric_key()
|
D | dpp.c | 2263 EC_KEY *eckey; in dpp_copy_netaccesskey() local 2272 eckey = EVP_PKEY_get1_EC_KEY(own_key); in dpp_copy_netaccesskey() 2273 if (!eckey) in dpp_copy_netaccesskey() 2276 der_len = i2d_ECPrivateKey(eckey, &der); in dpp_copy_netaccesskey() 2278 EC_KEY_free(eckey); in dpp_copy_netaccesskey() 2284 EC_KEY_free(eckey); in dpp_copy_netaccesskey() 3096 EC_KEY *eckey; in dpp_configurator_get_key() local 3103 eckey = EVP_PKEY_get1_EC_KEY(conf->csign); in dpp_configurator_get_key() 3104 if (!eckey) in dpp_configurator_get_key() 3107 key_len = i2d_ECPrivateKey(eckey, &key); in dpp_configurator_get_key() [all …]
|
/external/wpa_supplicant_8/src/crypto/ |
D | crypto_openssl.c | 2010 EC_KEY *eckey; in crypto_ecdh_get_pubkey() local 2016 eckey = EVP_PKEY_get1_EC_KEY(ecdh->pkey); in crypto_ecdh_get_pubkey() 2017 if (!eckey) in crypto_ecdh_get_pubkey() 2020 pubkey = EC_KEY_get0_public_key(eckey); in crypto_ecdh_get_pubkey() 2057 EC_KEY_free(eckey); in crypto_ecdh_get_pubkey() 2076 EC_KEY *eckey = NULL; in crypto_ecdh_set_peerkey() local 2110 eckey = EC_KEY_new_by_curve_name(ecdh->ec->nid); in crypto_ecdh_set_peerkey() 2111 if (!eckey || EC_KEY_set_public_key(eckey, pub) != 1) { in crypto_ecdh_set_peerkey() 2119 if (!peerkey || EVP_PKEY_set1_EC_KEY(peerkey, eckey) != 1) in crypto_ecdh_set_peerkey() 2150 EC_KEY_free(eckey); in crypto_ecdh_set_peerkey()
|
/external/boringssl/src/include/openssl/ |
D | x509.h | 628 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 629 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 630 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 631 OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 662 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 663 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 664 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 665 OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
|
D | ec_key.h | 284 unsigned int *sig_len, EC_KEY *eckey);
|
/external/u-boot/tools/ |
D | k3_gen_x509_cert.sh | 11 RAND_KEY=eckey.pem
|
/external/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | native_crypto.cc | 1006 bssl::UniquePtr<EC_KEY> eckey(EC_KEY_new()); in NativeCrypto_EVP_PKEY_new_EC_KEY() local 1007 if (eckey.get() == nullptr) { in NativeCrypto_EVP_PKEY_new_EC_KEY() 1012 if (EC_KEY_set_group(eckey.get(), group) != 1) { in NativeCrypto_EVP_PKEY_new_EC_KEY() 1020 if (EC_KEY_set_public_key(eckey.get(), pubkey) != 1) { in NativeCrypto_EVP_PKEY_new_EC_KEY() 1029 if (EC_KEY_set_private_key(eckey.get(), key.get()) != 1) { in NativeCrypto_EVP_PKEY_new_EC_KEY() 1043 EC_KEY_set_public_key(eckey.get(), calcPubkey.get()); in NativeCrypto_EVP_PKEY_new_EC_KEY() 1047 if (!EC_KEY_check_key(eckey.get())) { in NativeCrypto_EVP_PKEY_new_EC_KEY() 1060 if (EVP_PKEY_assign_EC_KEY(pkey.get(), eckey.get()) != 1) { in NativeCrypto_EVP_PKEY_new_EC_KEY() 1066 OWNERSHIP_TRANSFERRED(eckey); in NativeCrypto_EVP_PKEY_new_EC_KEY() 2085 bssl::UniquePtr<EC_KEY> eckey(EC_KEY_new()); in NativeCrypto_EC_KEY_generate_key() local [all …]
|