From 8439c4ec2f96d60c4801a87efdfd8707606dcf62 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 2 Oct 2007 20:35:23 +0000 Subject: r15512@catbus: nickm | 2007-10-02 16:27:43 -0400 Make some functions static; remove some dead code. svn:r11750 --- src/common/aes.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/common') diff --git a/src/common/aes.c b/src/common/aes.c index 8bb388e141..741e11eec5 100644 --- a/src/common/aes.c +++ b/src/common/aes.c @@ -311,29 +311,6 @@ aes_crypt(aes_cnt_cipher_t *cipher, const char *input, size_t len, } } -#if 0 -/** Return the current value of cipher's counter. */ -u64 -aes_get_counter(aes_cnt_cipher_t *cipher) -{ - u64 counter = cipher->pos; - counter |= ((u64)cipher->counter0) << 4; - counter |= ((u64)cipher->counter1) << 36; - return counter; -} - -/** Set cipher's counter to counter. */ -void -aes_set_counter(aes_cnt_cipher_t *cipher, u64 counter) -{ - cipher->pos = (u8)(counter & 0x0f); - cipher->counter0 = (u32) ((counter >> 4) & 0xffffffff); - cipher->counter1 = (u32) (counter >> 36); - - _aes_fill_buf(cipher); -} -#endif - /** DOCDOC */ void aes_set_iv(aes_cnt_cipher_t *cipher, const char *iv) @@ -352,17 +329,6 @@ aes_set_iv(aes_cnt_cipher_t *cipher, const char *iv) _aes_fill_buf(cipher); } -#if 0 -/** Increment cipher's counter by delta. */ -void -aes_adjust_counter(aes_cnt_cipher_t *cipher, long delta) -{ - u64 counter = aes_get_counter(cipher); - counter += delta; - aes_set_counter(cipher, counter); -} -#endif - #ifdef USE_BUILTIN_AES /*======================================================================*/ /* From rijndael-alg-fst.c */ -- cgit v1.2.3-54-g00ecf