aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/bitsliced-aes/aes.h
blob: 60e3e5d74b19440a4718cb3d105b1836252b4e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef _AES_H_
#define _AES_H_

#include <stdint.h>

void aes_ecb_encrypt(uint8_t * outputb, uint8_t * inputb, size_t size, uint8_t * key);
void aes_ecb_decrypt(uint8_t * outputb, uint8_t * inputb, size_t size, uint8_t * key);

void aes_ctr_encrypt(uint8_t * outputb, uint8_t * inputb, size_t size, uint8_t * key, uint8_t * iv);
#define aes_ctr_decrypt(outputb,inputb,size,key,iv) aes_ctr_encrypt(outputb,inputb,size,key,iv)

#endif