]> git.ipfire.org Git - thirdparty/strongswan.git/blob - lib/libcrypto/libaes/aes_cbc.c
- import of strongswan-2.7.0
[thirdparty/strongswan.git] / lib / libcrypto / libaes / aes_cbc.c
1 #ifdef __KERNEL__
2 #include <linux/types.h>
3 #else
4 #include <sys/types.h>
5 #endif
6 #include "aes_cbc.h"
7 #include "cbc_generic.h"
8 /* returns bool success */
9 int AES_set_key(aes_context *aes_ctx, const u_int8_t *key, int keysize) {
10 aes_set_key(aes_ctx, key, keysize, 0);
11 return 1;
12 }
13 CBC_IMPL_BLK16(AES_cbc_encrypt, aes_context, u_int8_t *, aes_encrypt, aes_decrypt);