mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
gpgsm: Allow ciphers AES192 and SERPENT256
* sm/gpgsm.c (main): Add AES192 cipher. Allow SERPENT256. -- Note that currently released Libcgrypt versions miss OIDs for Serpent and thus Serpent can only be used with tye forthcoming Libgcrypt 1.7.1. GnuPG-bug-id: 2273 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
2423238ee4
commit
5f9bd7a9e1
@ -1559,6 +1559,8 @@ main ( int argc, char **argv)
|
|||||||
else if (!strcmp (opt.def_cipher_algoid, "AES")
|
else if (!strcmp (opt.def_cipher_algoid, "AES")
|
||||||
|| !strcmp (opt.def_cipher_algoid, "AES128"))
|
|| !strcmp (opt.def_cipher_algoid, "AES128"))
|
||||||
opt.def_cipher_algoid = "2.16.840.1.101.3.4.1.2";
|
opt.def_cipher_algoid = "2.16.840.1.101.3.4.1.2";
|
||||||
|
else if (!strcmp (opt.def_cipher_algoid, "AES192") )
|
||||||
|
opt.def_cipher_algoid = "2.16.840.1.101.3.4.1.22";
|
||||||
else if (!strcmp (opt.def_cipher_algoid, "AES256") )
|
else if (!strcmp (opt.def_cipher_algoid, "AES256") )
|
||||||
opt.def_cipher_algoid = "2.16.840.1.101.3.4.1.42";
|
opt.def_cipher_algoid = "2.16.840.1.101.3.4.1.42";
|
||||||
else if (!strcmp (opt.def_cipher_algoid, "SERPENT")
|
else if (!strcmp (opt.def_cipher_algoid, "SERPENT")
|
||||||
@ -1566,7 +1568,7 @@ main ( int argc, char **argv)
|
|||||||
opt.def_cipher_algoid = "1.3.6.1.4.1.11591.13.2.2";
|
opt.def_cipher_algoid = "1.3.6.1.4.1.11591.13.2.2";
|
||||||
else if (!strcmp (opt.def_cipher_algoid, "SERPENT192") )
|
else if (!strcmp (opt.def_cipher_algoid, "SERPENT192") )
|
||||||
opt.def_cipher_algoid = "1.3.6.1.4.1.11591.13.2.22";
|
opt.def_cipher_algoid = "1.3.6.1.4.1.11591.13.2.22";
|
||||||
else if (!strcmp (opt.def_cipher_algoid, "SERPENT192") )
|
else if (!strcmp (opt.def_cipher_algoid, "SERPENT256") )
|
||||||
opt.def_cipher_algoid = "1.3.6.1.4.1.11591.13.2.42";
|
opt.def_cipher_algoid = "1.3.6.1.4.1.11591.13.2.42";
|
||||||
else if (!strcmp (opt.def_cipher_algoid, "SEED") )
|
else if (!strcmp (opt.def_cipher_algoid, "SEED") )
|
||||||
opt.def_cipher_algoid = "1.2.410.200004.1.4";
|
opt.def_cipher_algoid = "1.2.410.200004.1.4";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user