summaryrefslogtreecommitdiff
path: root/src/libcrypto/libaes/aes_cbc.c
blob: 962dd1a3507eda7f810d041a8db04287f943cc83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifdef __KERNEL__
#include <linux/types.h>
#else
#include <sys/types.h>
#endif
#include "aes_cbc.h"
#include "cbc_generic.h"
/* returns bool success */
int AES_set_key(aes_context *aes_ctx, const u_int8_t *key, int keysize) {
	aes_set_key(aes_ctx, key, keysize, 0);
	return 1;	
}
CBC_IMPL_BLK16(AES_cbc_encrypt, aes_context, u_int8_t *, aes_encrypt, aes_decrypt);