18 #ifndef OPENSSH_AESCTR_H
19 #define OPENSSH_AESCTR_H
23 #define AES_BLOCK_SIZE 16
25 typedef struct aesctr_ctx {
27 u32 ek[4*(AES_MAXROUNDS + 1)];
28 u8 ctr[AES_BLOCK_SIZE];
31 void aesctr_keysetup(aesctr_ctx *x,
const u8 *k,u32 kbits,u32 ivbits);
32 void aesctr_ivsetup(aesctr_ctx *x,
const u8 *iv);
33 void aesctr_encrypt_bytes(aesctr_ctx *x,
const u8 *m,u8 *c,u32 bytes);