1 /**
2  * @file aes/stub.c  AES stub
3  *
4  * Copyright (C) 2010 Creytiv.com
5  */
6 #include <re_types.h>
7 #include <re_aes.h>
8 
9 
aes_alloc(struct aes ** stp,enum aes_mode mode,const uint8_t * key,size_t key_bits,const uint8_t iv[AES_BLOCK_SIZE])10 int aes_alloc(struct aes **stp, enum aes_mode mode,
11 	      const uint8_t *key, size_t key_bits,
12 	      const uint8_t iv[AES_BLOCK_SIZE])
13 {
14 	(void)stp;
15 	(void)mode;
16 	(void)key;
17 	(void)key_bits;
18 	(void)iv;
19 	return ENOSYS;
20 }
21 
22 
aes_set_iv(struct aes * st,const uint8_t iv[AES_BLOCK_SIZE])23 void aes_set_iv(struct aes *st, const uint8_t iv[AES_BLOCK_SIZE])
24 {
25 	(void)st;
26 	(void)iv;
27 }
28 
29 
aes_encr(struct aes * st,uint8_t * out,const uint8_t * in,size_t len)30 int aes_encr(struct aes *st, uint8_t *out, const uint8_t *in, size_t len)
31 {
32 	(void)st;
33 	(void)out;
34 	(void)in;
35 	(void)len;
36 	return ENOSYS;
37 }
38 
39 
aes_decr(struct aes * st,uint8_t * out,const uint8_t * in,size_t len)40 int aes_decr(struct aes *st, uint8_t *out, const uint8_t *in, size_t len)
41 {
42 	(void)st;
43 	(void)out;
44 	(void)in;
45 	(void)len;
46 	return ENOSYS;
47 }
48 
49 
aes_get_authtag(struct aes * aes,uint8_t * tag,size_t taglen)50 int aes_get_authtag(struct aes *aes, uint8_t *tag, size_t taglen)
51 {
52 	(void)aes;
53 	(void)tag;
54 	(void)taglen;
55 
56 	return ENOSYS;
57 }
58 
59 
aes_authenticate(struct aes * aes,const uint8_t * tag,size_t taglen)60 int aes_authenticate(struct aes *aes, const uint8_t *tag, size_t taglen)
61 {
62 	(void)aes;
63 	(void)tag;
64 	(void)taglen;
65 
66 	return ENOSYS;
67 }
68