From 44e0c2bae4bfd87d770480902618dbccde84fd81 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Mon, 8 Sep 2014 17:14:36 -0400 Subject: 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 Reviewed-by: Kurt Roeckx --- crypto/dsa/dsa_ameth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/dsa') diff --git a/crypto/dsa/dsa_ameth.c b/crypto/dsa/dsa_ameth.c index 50273b03f3..61a1b01f7f 100644 --- a/crypto/dsa/dsa_ameth.c +++ b/crypto/dsa/dsa_ameth.c @@ -643,7 +643,7 @@ static int dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) #endif case ASN1_PKEY_CTRL_DEFAULT_MD_NID: - *(int *)arg2 = NID_sha1; + *(int *)arg2 = NID_sha256; return 2; default: -- cgit v1.2.3