aboutsummaryrefslogtreecommitdiff
path: root/src/common/aes.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-03 02:40:30 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-03 02:40:30 +0000
commit137b577bbd52a2da8f35a6b38514457868460e36 (patch)
tree24397d6dedb7c48bd46b4f0f0f69a4ad61d1cba3 /src/common/aes.h
parent3dc3d0c4ccc95b2a30f9c13386c56b4e4b1edf06 (diff)
downloadtor-137b577bbd52a2da8f35a6b38514457868460e36.tar.gz
tor-137b577bbd52a2da8f35a6b38514457868460e36.zip
Refactor the heck out of crypto interface: admit that we will stick with one ciphersuite at a time, make const things const, and stop putting openssl in the headers.
svn:r1458
Diffstat (limited to 'src/common/aes.h')
-rw-r--r--src/common/aes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/aes.h b/src/common/aes.h
index 9187708897..f162da2011 100644
--- a/src/common/aes.h
+++ b/src/common/aes.h
@@ -14,8 +14,8 @@ typedef struct aes_cnt_cipher aes_cnt_cipher_t;
aes_cnt_cipher_t* aes_new_cipher();
void aes_free_cipher(aes_cnt_cipher_t *cipher);
-void aes_set_key(aes_cnt_cipher_t *cipher, unsigned char *key, int key_bits);
-void aes_crypt(aes_cnt_cipher_t *cipher, char *input, int len, char *output);
+void aes_set_key(aes_cnt_cipher_t *cipher, const unsigned char *key, int key_bits);
+void aes_crypt(aes_cnt_cipher_t *cipher, const char *input, int len, char *output);
uint64_t aes_get_counter(aes_cnt_cipher_t *cipher);
void aes_set_counter(aes_cnt_cipher_t *cipher, uint64_t counter);
void aes_adjust_counter(aes_cnt_cipher_t *cipher, long delta);