Reformat changelog a little to follow arma rules on spacing
[tor.git] / src / common / aes.h
blob8ff28a76223edbf5384979df54cb7771f8f11a59
1 /* Copyright (c) 2003, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2013, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 /* Implements a minimal interface to counter-mode AES. */
8 #ifndef TOR_AES_H
9 #define TOR_AES_H
11 /**
12 * \file aes.h
13 * \brief Headers for aes.c
16 struct aes_cnt_cipher;
17 typedef struct aes_cnt_cipher aes_cnt_cipher_t;
19 aes_cnt_cipher_t* aes_new_cipher(const char *key, const char *iv);
20 void aes_cipher_free(aes_cnt_cipher_t *cipher);
21 void aes_crypt(aes_cnt_cipher_t *cipher, const char *input, size_t len,
22 char *output);
23 void aes_crypt_inplace(aes_cnt_cipher_t *cipher, char *data, size_t len);
25 int evaluate_evp_for_aes(int force_value);
26 int evaluate_ctr_for_aes(void);
28 #endif