/soc/2013/ankitkv/gobjectification: d5f3707d4032: Removed set_iv...

Ankit Vani a at nevitus.org
Sun Jun 16 08:22:39 EDT 2013


Changeset: d5f3707d403265008de1bb302cee6ef0145f8a88
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-06-16 17:52 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/d5f3707d4032

Description:

Removed set_iv method from HMAC cipher, since no hash implements it

diffstat:

 libpurple/ciphers/hmaccipher.c |  9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diffs (26 lines):

diff --git a/libpurple/ciphers/hmaccipher.c b/libpurple/ciphers/hmaccipher.c
--- a/libpurple/ciphers/hmaccipher.c
+++ b/libpurple/ciphers/hmaccipher.c
@@ -94,14 +94,6 @@ purple_hmac_cipher_reset_state(PurpleCip
 }
 
 static void
-purple_hmac_cipher_set_iv(PurpleCipher *cipher, guchar *iv, size_t len) {
-	PurpleHMACCipherPrivate *priv = PURPLE_HMAC_CIPHER_GET_PRIVATE(cipher);
-
-	if(PURPLE_IS_HASH(priv->hash))
-		purple_hash_set_iv(priv->hash, iv, len);
-}
-
-static void
 purple_hmac_cipher_append(PurpleCipher *cipher, const guchar *d, size_t l) {
 	PurpleHMACCipherPrivate *priv = PURPLE_HMAC_CIPHER_GET_PRIVATE(cipher);
 
@@ -287,7 +279,6 @@ purple_hmac_cipher_class_init(PurpleHMAC
 
 	cipher_class->reset = purple_hmac_cipher_reset;
 	cipher_class->reset_state = purple_hmac_cipher_reset_state;
-	cipher_class->set_iv = purple_hmac_cipher_set_iv;
 	cipher_class->append = purple_hmac_cipher_append;
 	cipher_class->digest = purple_hmac_cipher_digest;
 	cipher_class->get_digest_size = purple_hmac_cipher_get_digest_size;



More information about the Commits mailing list