/external/boringssl/src/crypto/ecdsa/ |
H A D | ecdsa_test.cc | 76 EC_KEY *eckey, int expected_result) { 92 signature.size(), eckey); 97 actual_result = ECDSA_do_verify(digest, digest_len, ecdsa_sig, eckey); 111 EC_KEY *eckey, const BIGNUM *order) { 140 !VerifyECDSASig(api, digest, digest_len, ecdsa_sig, eckey, 0)) { 149 !VerifyECDSASig(api, digest, digest_len, ecdsa_sig, eckey, 1)) { 200 ScopedEC_KEY eckey(EC_KEY_new()); 201 if (!eckey || !EC_KEY_set_group(eckey.get(), group.get()) || 202 !EC_KEY_generate_key(eckey 74 VerifyECDSASig(Api api, const uint8_t *digest, size_t digest_len, const ECDSA_SIG *ecdsa_sig, EC_KEY *eckey, int expected_result) argument 109 TestTamperedSig(FILE *out, Api api, const uint8_t *digest, size_t digest_len, ECDSA_SIG *ecdsa_sig, EC_KEY *eckey, const BIGNUM *order) argument [all...] |
H A D | ecdsa.c | 65 unsigned int *sig_len, EC_KEY *eckey) { 66 if (eckey->ecdsa_meth && eckey->ecdsa_meth->sign) { 67 return eckey->ecdsa_meth->sign(digest, digest_len, sig, sig_len, eckey); 71 eckey); 75 const uint8_t *sig, size_t sig_len, EC_KEY *eckey) { 80 if (eckey->ecdsa_meth && eckey->ecdsa_meth->verify) { 81 return eckey 64 ECDSA_sign(int type, const uint8_t *digest, size_t digest_len, uint8_t *sig, unsigned int *sig_len, EC_KEY *eckey) argument 74 ECDSA_verify(int type, const uint8_t *digest, size_t digest_len, const uint8_t *sig, size_t sig_len, EC_KEY *eckey) argument 138 ECDSA_do_verify(const uint8_t *digest, size_t digest_len, const ECDSA_SIG *sig, EC_KEY *eckey) argument 234 ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const uint8_t *digest, size_t digest_len) argument 352 ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp) argument 356 ECDSA_do_sign_ex(const uint8_t *digest, size_t digest_len, const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey) argument 455 ECDSA_sign_ex(int type, const uint8_t *digest, size_t digest_len, uint8_t *sig, unsigned int *sig_len, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) argument [all...] |
/external/boringssl/src/crypto/ec/ |
H A D | ec_key.c | 296 int EC_KEY_check_key(const EC_KEY *eckey) { argument 302 if (!eckey || !eckey->group || !eckey->pub_key) { 307 if (EC_POINT_is_at_infinity(eckey->group, eckey->pub_key)) { 313 point = EC_POINT_new(eckey->group); 321 if (!EC_POINT_is_on_curve(eckey->group, eckey->pub_key, ctx)) { 328 order = &eckey 418 EC_KEY_generate_key(EC_KEY *eckey) argument [all...] |
/external/boringssl/src/crypto/evp/ |
H A D | p_ec_asn1.c | 131 EC_KEY *eckey = NULL; local 138 eckey = d2i_ECParameters(NULL, &pm, pmlen); 139 if (eckey == NULL) { 148 eckey = EC_KEY_new_by_curve_name(OBJ_obj2nid(poid)); 149 if (eckey == NULL) { 157 return eckey; 160 if (eckey) { 161 EC_KEY_free(eckey); 170 EC_KEY *eckey = NULL; local 178 eckey 219 EC_KEY *eckey = NULL; local 492 EC_KEY *eckey; local [all...] |
H A D | p_ec.c | 172 EC_KEY *eckey; local 179 eckey = ctx->pkey->pkey.ec; 183 group = EC_KEY_get0_group(eckey); 194 ret = ECDH_compute_key(key, outlen, pubkey, eckey, 0);
|
/external/boringssl/src/crypto/pem/ |
H A D | pem_all.c | 123 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey); 227 static EC_KEY *pkey_get_eckey(EVP_PKEY *key, EC_KEY **eckey) argument 234 if(eckey) 236 EC_KEY_free(*eckey); 237 *eckey = dtmp; 263 EC_KEY *PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, 268 return pkey_get_eckey(pktmp, eckey); /* will free pktmp */
|
/external/boringssl/include/openssl/ |
H A D | ecdsa.h | 131 OPENSSL_EXPORT int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 139 EC_KEY *eckey); 146 const BIGNUM *rp, EC_KEY *eckey);
|
H A D | ec_key.h | 266 unsigned int *sig_len, EC_KEY *eckey); 270 size_t sig_len, EC_KEY *eckey);
|
H A D | x509.h | 661 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 662 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 663 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 664 OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 695 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 696 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 697 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 698 OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
|
/external/boringssl/src/include/openssl/ |
H A D | ecdsa.h | 131 OPENSSL_EXPORT int ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 139 EC_KEY *eckey); 146 const BIGNUM *rp, EC_KEY *eckey);
|
H A D | ec_key.h | 266 unsigned int *sig_len, EC_KEY *eckey); 270 size_t sig_len, EC_KEY *eckey);
|
H A D | x509.h | 661 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey); 662 OPENSSL_EXPORT int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey); 663 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey); 664 OPENSSL_EXPORT int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey); 695 OPENSSL_EXPORT EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey); 696 OPENSSL_EXPORT int i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey); 697 OPENSSL_EXPORT EC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey); 698 OPENSSL_EXPORT int i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);
|
/external/boringssl/src/crypto/x509/ |
H A D | x_all.c | 351 EC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) argument 353 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,fp,eckey); 356 int i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey) argument 358 return ASN1_i2d_fp_of_const(EC_KEY,i2d_EC_PUBKEY,fp,eckey); 361 EC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey) argument 363 return ASN1_d2i_fp_of(EC_KEY,EC_KEY_new,d2i_ECPrivateKey,fp,eckey); 366 int i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) argument 368 return ASN1_i2d_fp_of_const(EC_KEY,i2d_ECPrivateKey,fp,eckey); 371 EC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) argument 373 return ASN1_d2i_bio_of(EC_KEY,EC_KEY_new,d2i_EC_PUBKEY,bp,eckey); 381 d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey) argument 386 i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey) argument [all...] |
/external/conscrypt/src/main/native/ |
H A D | org_conscrypt_NativeCrypto.cpp | 1775 const BIGNUM* /* rp */, EC_KEY* eckey) { 1778 reinterpret_cast<jobject>(ECDSA_get_ex_data(eckey, EcdsaGetExDataIndex())); 1800 size_t max_expected_size = static_cast<size_t>(ECDSA_size(eckey)); 1813 int EcdsaMethodSignSetup(EC_KEY* /* eckey */, 1826 EC_KEY* /* eckey */) { 2726 Unique_EC_KEY eckey(EC_KEY_new()); 2727 if (eckey.get() == NULL) { 2732 if (EC_KEY_set_group(eckey.get(), group) != 1) { 2740 if (EC_KEY_set_public_key(eckey.get(), pubkey) != 1) { 2749 if (EC_KEY_set_private_key(eckey 1774 EcdsaMethodDoSign(const unsigned char* dgst, int dgst_len, const BIGNUM* , const BIGNUM* , EC_KEY* eckey) argument [all...] |