From 6af933667efaab3e74add5ffefd7f9691a362958 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sun, 29 Nov 2009 23:13:57 +0000 Subject: Remove the non-iov entry point introduced in r23378, since it's easy to use the iov entry point at both call sites. Rename the iov entry point to remove the "_iov" suffix since it's no longer needed to disambiguate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23381 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/krb/arcfour/arcfour.c | 46 ------------------------------- src/lib/crypto/krb/arcfour/arcfour_aead.c | 6 ++-- src/lib/crypto/libk5crypto.exports | 1 - 3 files changed, 3 insertions(+), 50 deletions(-) (limited to 'src/lib/crypto') diff --git a/src/lib/crypto/krb/arcfour/arcfour.c b/src/lib/crypto/krb/arcfour/arcfour.c index ba48d72..eb80124 100644 --- a/src/lib/crypto/krb/arcfour/arcfour.c +++ b/src/lib/crypto/krb/arcfour/arcfour.c @@ -263,49 +263,3 @@ cleanup: zapfree(comp_checksum.data, comp_checksum.length); return ret; } - -/* Encrypt or decrypt data for a GSSAPI token. */ -krb5_error_code -krb5int_arcfour_gsscrypt(const krb5_keyblock *keyblock, krb5_keyusage usage, - const krb5_data *kd_data, const krb5_data *input, - krb5_data *output) -{ - const struct krb5_enc_provider *enc = &krb5int_enc_arcfour; - const struct krb5_hash_provider *hash = &krb5int_hash_md5; - krb5_keyblock *usage_keyblock = NULL, *enc_keyblock = NULL; - krb5_key enc_key; - krb5_error_code ret; - - ret = krb5int_c_init_keyblock(NULL, keyblock->enctype, enc->keybytes, - &usage_keyblock); - if (ret != 0) - goto cleanup; - ret = krb5int_c_init_keyblock(NULL, keyblock->enctype, enc->keybytes, - &enc_keyblock); - if (ret != 0) - goto cleanup; - - /* Derive a usage key from the session key and usage. */ - ret = krb5int_arcfour_usage_key(enc, hash, keyblock, usage, - usage_keyblock); - if (ret != 0) - goto cleanup; - - /* Derive the encryption key from the usage key and kd_data. */ - ret = krb5int_arcfour_enc_key(enc, hash, usage_keyblock, kd_data, - enc_keyblock); - if (ret != 0) - goto cleanup; - - /* Encrypt or decrypt (encrypt works for both) the input. */ - ret = krb5_k_create_key(NULL, enc_keyblock, &enc_key); - if (ret != 0) - goto cleanup; - ret = (*enc->encrypt)(enc_key, 0, input, output); - krb5_k_free_key(NULL, enc_key); - -cleanup: - krb5int_c_free_keyblock(NULL, usage_keyblock); - krb5int_c_free_keyblock(NULL, enc_keyblock); - return ret; -} diff --git a/src/lib/crypto/krb/arcfour/arcfour_aead.c b/src/lib/crypto/krb/arcfour/arcfour_aead.c index c5e65ca..c8612fb 100644 --- a/src/lib/crypto/krb/arcfour/arcfour_aead.c +++ b/src/lib/crypto/krb/arcfour/arcfour_aead.c @@ -268,9 +268,9 @@ const struct krb5_aead_provider krb5int_aead_arcfour = { }; krb5_error_code -krb5int_arcfour_gsscrypt_iov(const krb5_keyblock *keyblock, - krb5_keyusage usage, const krb5_data *kd_data, - krb5_crypto_iov *data, size_t num_data) +krb5int_arcfour_gsscrypt(const krb5_keyblock *keyblock, krb5_keyusage usage, + const krb5_data *kd_data, krb5_crypto_iov *data, + size_t num_data) { const struct krb5_enc_provider *enc = &krb5int_enc_arcfour; const struct krb5_hash_provider *hash = &krb5int_hash_md5; diff --git a/src/lib/crypto/libk5crypto.exports b/src/lib/crypto/libk5crypto.exports index 9b19557..bc31c30 100644 --- a/src/lib/crypto/libk5crypto.exports +++ b/src/lib/crypto/libk5crypto.exports @@ -96,4 +96,3 @@ krb5int_MD5Final krb5int_aes_decrypt krb5int_enc_des3 krb5int_arcfour_gsscrypt -krb5int_arcfour_gsscrypt_iov -- cgit v1.1