1 /* Copyright (c) 2003, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2021, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 /* Implements a minimal interface to counter-mode AES. */
13 * \brief Headers for aes.c
16 #include "lib/cc/torint.h"
17 #include "lib/malloc/malloc.h"
19 typedef struct aes_cnt_cipher_t aes_cnt_cipher_t
;
21 aes_cnt_cipher_t
* aes_new_cipher(const uint8_t *key
, const uint8_t *iv
,
23 void aes_cipher_free_(aes_cnt_cipher_t
*cipher
);
24 #define aes_cipher_free(cipher) \
25 FREE_AND_NULL(aes_cnt_cipher_t, aes_cipher_free_, (cipher))
26 void aes_crypt_inplace(aes_cnt_cipher_t
*cipher
, char *data
, size_t len
);
28 int evaluate_evp_for_aes(int force_value
);
29 int evaluate_ctr_for_aes(void);
31 #endif /* !defined(TOR_AES_H) */