]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Add aes128-sha1, aes256-sha1 enctype aliases
authorGreg Hudson <ghudson@mit.edu>
Fri, 23 Sep 2016 19:11:43 +0000 (15:11 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 3 Oct 2016 19:39:17 +0000 (15:39 -0400)
For parallelism with aes128-sha2 and aes256-sha2, add enctype aliases
aes128-sha1 and aes256-sha1 for the older AES enctypes.

ticket: 8490

src/lib/crypto/krb/etypes.c

index 112ae08aa5648561ac95cc3e8cfd80183033c3c1..0e5e977d418a6bff551f68da5b6e49c494552ebf 100644 (file)
@@ -125,7 +125,7 @@ const struct krb5_keytypes krb5int_enctypes_list[] = {
     },
 
     { ENCTYPE_AES128_CTS_HMAC_SHA1_96,
-      "aes128-cts-hmac-sha1-96", { "aes128-cts" },
+      "aes128-cts-hmac-sha1-96", { "aes128-cts", "aes128-sha1" },
       "AES-128 CTS mode with 96-bit SHA-1 HMAC",
       &krb5int_enc_aes128, &krb5int_hash_sha1,
       16,
@@ -135,7 +135,7 @@ const struct krb5_keytypes krb5int_enctypes_list[] = {
       CKSUMTYPE_HMAC_SHA1_96_AES128,
       0 /*flags*/ },
     { ENCTYPE_AES256_CTS_HMAC_SHA1_96,
-      "aes256-cts-hmac-sha1-96", { "aes256-cts" },
+      "aes256-cts-hmac-sha1-96", { "aes256-cts", "aes256-sha1" },
       "AES-256 CTS mode with 96-bit SHA-1 HMAC",
       &krb5int_enc_aes256, &krb5int_hash_sha1,
       16,