kdc: Add krb5_is_enctype_old() to determine whether an enctype is older
AES256 and AES128 are newer enctypes because they are officially specified in RFC4120 and RFC8009, while enctypes not officially specified since RFC4120 are considered older. This function differs from older_enctype() in that it does not report unknown or non-existent enctypes as being 'newer'. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Luke Howard

parent
87348cf27a
commit
91e86460cd
@@ -309,7 +309,7 @@ struct _krb5_encryption_type _krb5_enctype_des_cbc_crc = {
|
||||
&keytype_des,
|
||||
&_krb5_checksum_crc32,
|
||||
NULL,
|
||||
F_DISABLED|F_WEAK,
|
||||
F_DISABLED|F_WEAK|F_OLD,
|
||||
evp_des_encrypt_key_ivec,
|
||||
NULL,
|
||||
0,
|
||||
@@ -326,7 +326,7 @@ struct _krb5_encryption_type _krb5_enctype_des_cbc_md4 = {
|
||||
&keytype_des,
|
||||
&_krb5_checksum_rsa_md4,
|
||||
&_krb5_checksum_rsa_md4_des,
|
||||
F_DISABLED|F_WEAK,
|
||||
F_DISABLED|F_WEAK|F_OLD,
|
||||
evp_des_encrypt_null_ivec,
|
||||
NULL,
|
||||
0,
|
||||
@@ -343,7 +343,7 @@ struct _krb5_encryption_type _krb5_enctype_des_cbc_md5 = {
|
||||
&keytype_des,
|
||||
&_krb5_checksum_rsa_md5,
|
||||
&_krb5_checksum_rsa_md5_des,
|
||||
F_DISABLED|F_WEAK,
|
||||
F_DISABLED|F_WEAK|F_OLD,
|
||||
evp_des_encrypt_null_ivec,
|
||||
NULL,
|
||||
0,
|
||||
@@ -360,7 +360,7 @@ struct _krb5_encryption_type _krb5_enctype_des_cbc_none = {
|
||||
&keytype_des,
|
||||
&_krb5_checksum_none,
|
||||
NULL,
|
||||
F_PSEUDO|F_DISABLED|F_WEAK,
|
||||
F_PSEUDO|F_DISABLED|F_WEAK|F_OLD,
|
||||
evp_des_encrypt_null_ivec,
|
||||
NULL,
|
||||
0,
|
||||
@@ -377,7 +377,7 @@ struct _krb5_encryption_type _krb5_enctype_des_cfb64_none = {
|
||||
&keytype_des_old,
|
||||
&_krb5_checksum_none,
|
||||
NULL,
|
||||
F_PSEUDO|F_DISABLED|F_WEAK,
|
||||
F_PSEUDO|F_DISABLED|F_WEAK|F_OLD,
|
||||
DES_CFB64_encrypt_null_ivec,
|
||||
NULL,
|
||||
0,
|
||||
@@ -394,7 +394,7 @@ struct _krb5_encryption_type _krb5_enctype_des_pcbc_none = {
|
||||
&keytype_des_old,
|
||||
&_krb5_checksum_none,
|
||||
NULL,
|
||||
F_PSEUDO|F_DISABLED|F_WEAK,
|
||||
F_PSEUDO|F_DISABLED|F_WEAK|F_OLD,
|
||||
DES_PCBC_encrypt_key_ivec,
|
||||
NULL,
|
||||
0,
|
||||
|
Reference in New Issue
Block a user