prog_fuse: sleep between commands
[aversive.git] / modules / crypto / aes / aes_ctr.h
1 #ifndef AES_CTR_H
2 #define AES_CTR_H
3
4
5 typedef struct _aes_ctr_ctx
6 {
7   AES_KEY key;
8   unsigned char counter[AES_BLOCK_SIZE];
9   unsigned char ecount_buf[AES_BLOCK_SIZE];
10   unsigned int num;
11 } aes_ctr_ctx;
12
13 void AES_ctr128_inc(unsigned char *counter);
14
15 void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,
16                         const unsigned long length, const AES_KEY *key,
17                         unsigned char counter[AES_BLOCK_SIZE],
18                         unsigned char ecount_buf[AES_BLOCK_SIZE],
19                         unsigned int *num) ;
20
21
22 #endif