diff options
author | Nils Larsch <nils@openssl.org> | 2006-12-20 08:58:54 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2006-12-20 08:58:54 +0000 |
commit | 06e2dd037e29f82b92e1d1b9454f1595e602fb94 (patch) | |
tree | 9711ac003640b564cbc08c8a6b2be656a490d5e9 /crypto/ec/ec_pmeth.c | |
parent | 34f0a1930928bba6902b8b6d5217bc6bd667f5c7 (diff) |
add support for ecdsa-with-sha256 etc.
Diffstat (limited to 'crypto/ec/ec_pmeth.c')
-rw-r--r-- | crypto/ec/ec_pmeth.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c index 4621e765ff..3f137b892a 100644 --- a/crypto/ec/ec_pmeth.c +++ b/crypto/ec/ec_pmeth.c @@ -220,7 +220,11 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) return 1; case EVP_PKEY_CTRL_MD: - if (EVP_MD_type((const EVP_MD *)p2) != NID_sha1) + if (EVP_MD_type((const EVP_MD *)p2) != NID_sha1 && + EVP_MD_type((const EVP_MD *)p2) != NID_sha224 && + EVP_MD_type((const EVP_MD *)p2) != NID_sha256 && + EVP_MD_type((const EVP_MD *)p2) != NID_sha384 && + EVP_MD_type((const EVP_MD *)p2) != NID_sha512) { ECerr(EC_F_PKEY_EC_CTRL, EC_R_INVALID_DIGEST_TYPE); return 0; |