mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01: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:
parent
bdd22e3a08
commit
1e4d8ddbe3
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user