diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-10-09 14:27:04 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-10-09 14:27:04 -0400 |
commit | 01f30a7f06110f54c5d69fdd7697347c102f5274 (patch) | |
tree | d7103da14e3d895f6c2629647daa3fdde0641759 /src/lib/crypto/krb/crypto_int.h | |
parent | fd136728de5b603974e3ec21bc5856406c4e814d (diff) | |
download | krb5-01f30a7f06110f54c5d69fdd7697347c102f5274.tar.gz krb5-01f30a7f06110f54c5d69fdd7697347c102f5274.tar.xz krb5-01f30a7f06110f54c5d69fdd7697347c102f5274.zip |
De-conditionalize Camellia code
The Camellia enctypes and cksumtypes have received IANA assignments.
Add #defines using those assignments to krb5.h, remove the CAMELLIA
conditional, and enable testing code as appropriate.
The Camellia draft has not received an RFC number yet, so there is no
Doxygen markup for the enctype and cksumtype #defines. That can be
added once the RFC number is known.
Diffstat (limited to 'src/lib/crypto/krb/crypto_int.h')
-rw-r--r-- | src/lib/crypto/krb/crypto_int.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/crypto/krb/crypto_int.h b/src/lib/crypto/krb/crypto_int.h index cb9aef3462..01090d0068 100644 --- a/src/lib/crypto/krb/crypto_int.h +++ b/src/lib/crypto/krb/crypto_int.h @@ -321,11 +321,8 @@ krb5_error_code krb5int_confounder_verify(const struct krb5_cksumtypes *ctp, /*** Key derivation functions ***/ enum deriv_alg { - DERIVE_RFC3961 /* RFC 3961 section 5.1 */ -#ifdef CAMELLIA - , /* C90 doesn't let enum list end w/comma */ + DERIVE_RFC3961, /* RFC 3961 section 5.1 */ DERIVE_SP800_108_CMAC /* NIST SP 800-108 with CMAC as PRF */ -#endif }; krb5_error_code krb5int_derive_keyblock(const struct krb5_enc_provider *enc, @@ -421,10 +418,8 @@ extern const struct krb5_enc_provider krb5int_enc_aes128; extern const struct krb5_enc_provider krb5int_enc_aes256; extern const struct krb5_enc_provider krb5int_enc_aes128_ctr; extern const struct krb5_enc_provider krb5int_enc_aes256_ctr; -#ifdef CAMELLIA extern const struct krb5_enc_provider krb5int_enc_camellia128; extern const struct krb5_enc_provider krb5int_enc_camellia256; -#endif extern const struct krb5_hash_provider krb5int_hash_crc32; extern const struct krb5_hash_provider krb5int_hash_md4; @@ -462,8 +457,7 @@ krb5_error_code krb5int_pbkdf2_hmac_sha1(const krb5_data *out, const krb5_data *salt); /* The following are used by test programs and are just handler functions from - * the AES and Camellia enc providers. Define a stub krb5int_camellia_cbc_mac - * even if CAMELLIA isn't defined, since it's in the export list. */ + * the AES and Camellia enc providers. */ krb5_error_code krb5int_aes_encrypt(krb5_key key, const krb5_data *ivec, krb5_crypto_iov *data, size_t num_data); krb5_error_code krb5int_aes_decrypt(krb5_key key, const krb5_data *ivec, |