2 * Copyright (C) 1998 by the FundsXpress, INC.
6 * Export of this software from the United States of America may require
7 * a specific license from the United States Government. It is the
8 * responsibility of any person or organization contemplating export to
9 * obtain such a license before exporting.
11 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
12 * distribute this software and its documentation for any purpose and
13 * without fee is hereby granted, provided that the above copyright
14 * notice appear in all copies and that both that copyright notice and
15 * this permission notice appear in supporting documentation, and that
16 * the name of FundsXpress. not be used in advertising or publicity pertaining
17 * to distribution of the software without specific, written prior
18 * permission. FundsXpress makes no representations about the suitability of
19 * this software for any purpose. It is provided "as is" without express
20 * or implied warranty.
22 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
24 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
28 #include "hash_provider.h"
29 #include "keyhash_provider.h"
30 #include "cksumtypes.h"
32 const struct krb5_cksumtypes krb5_cksumtypes_list[] = {
33 { CKSUMTYPE_CRC32, KRB5_CKSUMFLAG_NOT_COLL_PROOF,
36 &krb5int_hash_crc32 },
38 { CKSUMTYPE_RSA_MD4, 0,
42 { CKSUMTYPE_RSA_MD4_DES, 0,
43 "md4-des", "RSA-MD4 with DES cbc mode",
44 ENCTYPE_DES_CBC_CRC, &krb5int_keyhash_md4des,
47 { CKSUMTYPE_DESCBC, 0,
48 "des-cbc", "DES cbc mode",
49 ENCTYPE_DES_CBC_CRC, &krb5int_keyhash_descbc,
52 { CKSUMTYPE_RSA_MD5, 0,
56 { CKSUMTYPE_RSA_MD5_DES, 0,
57 "md5-des", "RSA-MD5 with DES cbc mode",
58 ENCTYPE_DES_CBC_CRC, &krb5int_keyhash_md5des,
61 { CKSUMTYPE_NIST_SHA, 0,
66 { CKSUMTYPE_HMAC_SHA1_DES3, KRB5_CKSUMFLAG_DERIVE,
67 "hmac-sha1-des3", "HMAC-SHA1 DES3 key",
70 { CKSUMTYPE_HMAC_SHA1_DES3, KRB5_CKSUMFLAG_DERIVE,
71 "hmac-sha1-des3-kd", "HMAC-SHA1 DES3 key", /* alias */
74 { CKSUMTYPE_HMAC_MD5_ARCFOUR, 0,
75 "hmac-md5-rc4", "Microsoft HMAC MD5 (RC4 key)",
76 ENCTYPE_ARCFOUR_HMAC, &krb5int_keyhash_hmac_md5,
78 { CKSUMTYPE_HMAC_MD5_ARCFOUR, 0,
79 "hmac-md5-enc", "Microsoft HMAC MD5 (RC4 key)", /*Heimdal alias*/
80 ENCTYPE_ARCFOUR_HMAC, &krb5int_keyhash_hmac_md5,
82 { CKSUMTYPE_HMAC_MD5_ARCFOUR, 0,
83 "hmac-md5-earcfour", "Microsoft HMAC MD5 (RC4 key)", /* alias*/
84 ENCTYPE_ARCFOUR_HMAC, &krb5int_keyhash_hmac_md5,
87 { CKSUMTYPE_HMAC_SHA1_96_AES128, KRB5_CKSUMFLAG_DERIVE,
88 "hmac-sha1-96-aes128", "HMAC-SHA1 AES128 key",
90 &krb5int_hash_sha1, 12 },
91 { CKSUMTYPE_HMAC_SHA1_96_AES256, KRB5_CKSUMFLAG_DERIVE,
92 "hmac-sha1-96-aes256", "HMAC-SHA1 AES256 key",
94 &krb5int_hash_sha1, 12 },
97 const int krb5_cksumtypes_length =
98 sizeof(krb5_cksumtypes_list)/sizeof(struct krb5_cksumtypes);