2 * @file aes_cbc_crypter.h
4 * @brief Interface of aes_cbc_crypter_t
9 * Copyright (C) 2001 Dr B. R. Gladman <brg@gladman.uk.net>
10 * Copyright (C) 2005 Jan Hutter, Martin Willi
11 * Hochschule fuer Technik Rapperswil
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 #ifndef AES_CBC_CRYPTER_H_
25 #define AES_CBC_CRYPTER_H_
27 #include <crypto/crypters/crypter.h>
30 typedef struct aes_cbc_crypter_t aes_cbc_crypter_t
;
33 * @brief Class implementing the AES symmetric encryption algorithm.
36 * - aes_cbc_crypter_create()
40 struct aes_cbc_crypter_t
{
43 * The crypter_t interface.
45 crypter_t crypter_interface
;
49 * @brief Constructor to create aes_cbc_crypter_t objects.
51 * Supported key sizes are: 16, 24 or 32.
53 * @param key_size key size in bytes
55 * - aes_cbc_crypter_t object
56 * - NULL if key size not supported
58 aes_cbc_crypter_t
*aes_cbc_crypter_create(size_t key_size
);
61 #endif /* AES_CBC_CRYPTER_H_ */