diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2014-09-08 17:14:36 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2014-09-08 17:23:37 -0400 |
commit | 57c932dafde94365751568174a3250a25ee17e07 (patch) | |
tree | bb7a4214d92e37c375f721bb9193b58be23f1bc4 /crypto/hmac | |
parent | ef720a67ab8469e009c41714aeff9a34242aa380 (diff) |
RT2626: Change default_bits from 1K to 2K
This is a more comprehensive fix. It changes all
keygen apps to use 2K keys. It also changes the
default to use SHA256 not SHA1. This is from
Kurt's upstream Debian changes.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
(cherry picked from commit 44e0c2bae4bfd87d770480902618dbccde84fd81)
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/hm_ameth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac/hm_ameth.c b/crypto/hmac/hm_ameth.c index e03f24aeda..9fe6505bd5 100644 --- a/crypto/hmac/hm_ameth.c +++ b/crypto/hmac/hm_ameth.c @@ -89,7 +89,7 @@ static int hmac_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) switch (op) { case ASN1_PKEY_CTRL_DEFAULT_MD_NID: - *(int *)arg2 = NID_sha1; + *(int *)arg2 = NID_sha256; return 1; default: |