1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-23 01:22:45 +02:00

sm: Change default algos to SHA256 (CSR) and AES128 (bulk encryption).

* sm/certreqgen.c (create_request): Change default hash algo.
* sm/gpgsm.c (DEFAULT_CIPHER_ALGO): Change default bulk cipher algo.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2015-03-25 10:12:11 +01:00
parent bdd22e3a08
commit 1e4d8ddbe3
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
2 changed files with 2 additions and 2 deletions

View File

@ -807,7 +807,7 @@ create_request (ctrl_t ctrl,
if (string)
mdalgo = gcry_md_map_name (string);
else
mdalgo = GCRY_MD_SHA1;
mdalgo = GCRY_MD_SHA256;
rc = gcry_md_open (&md, mdalgo, 0);
if (rc)
{

View File

@ -438,7 +438,7 @@ static int default_include_certs = DEFAULT_INCLUDE_CERTS;
static int default_validation_model;
/* The default cipher algo. */
#define DEFAULT_CIPHER_ALGO "3DES" /*des-EDE3-CBC*/
#define DEFAULT_CIPHER_ALGO "AES"
static char *build_list (const char *text,