aboutsummaryrefslogtreecommitdiff
path: root/src/common/aes.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-02 20:35:23 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-02 20:35:23 +0000
commit8439c4ec2f96d60c4801a87efdfd8707606dcf62 (patch)
tree8322c1d7dedb8afa0cfe16c6cc260a6e85193dae /src/common/aes.c
parentf4f780b526df83032748782fb5917a7ee7412902 (diff)
downloadtor-8439c4ec2f96d60c4801a87efdfd8707606dcf62.tar
tor-8439c4ec2f96d60c4801a87efdfd8707606dcf62.tar.gz
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.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/common/aes.c b/src/common/aes.c
index 8bb388e14..741e11eec 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 */