4 * @brief Interface of aes_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_CRYPTER_H_
25 #define _AES_CRYPTER_H_
27 #include <transforms/crypters/crypter.h>
30 typedef struct aes_crypter_t aes_crypter_t
;
33 * @brief Class implementing the AES symmetric encryption algorithm.
37 struct aes_crypter_t
{
40 * crypter_t interface.
42 crypter_t crypter_interface
;
45 * @brief Destroys a aes_crypter_t object.
47 * @param this crypter_t object to destroy
49 * - SUCCESS in any case
51 status_t (*destroy
) (aes_crypter_t
*this);
55 * @brief Constructor to create aes_crypter_t objects.
57 * @param blocksize block size of AES crypter
58 * (16, 24 or 32 are supported)
59 * Default size is set to 16.
61 * - aes_crypter_t if successfully
62 * - NULL if out of ressources
64 aes_crypter_t
*aes_crypter_create(size_t blocksize
);
67 #endif //_AES_CRYPTER_H_