diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-02 20:35:23 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-02 20:35:23 +0000 |
commit | 8439c4ec2f96d60c4801a87efdfd8707606dcf62 (patch) | |
tree | 8322c1d7dedb8afa0cfe16c6cc260a6e85193dae /src/common/aes.c | |
parent | f4f780b526df83032748782fb5917a7ee7412902 (diff) | |
download | tor-8439c4ec2f96d60c4801a87efdfd8707606dcf62.tar.gz tor-8439c4ec2f96d60c4801a87efdfd8707606dcf62.zip |
r15512@catbus: nickm | 2007-10-02 16:27:43 -0400
Make some functions static; remove some dead code.
svn:r11750
Diffstat (limited to 'src/common/aes.c')
-rw-r--r-- | src/common/aes.c | 34 |
1 files changed, 0 insertions, 34 deletions
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 <b>cipher</b>'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 <b>cipher</b>'s counter to <b>counter</b>. */ -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 <b>cipher</b>'s counter by <b>delta</b>. */ -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 */ |