2 * Copyright (C) 2008 Thomas Kallenberg
3 * Copyright (C) 2008 Martin Willi
4 * Hochschule fuer Technik Rapperswil
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * @defgroup padlock_aes_crypter padlock_aes_crypter
19 * @{ @ingroup padlock_p
22 #ifndef PADLOCK_AES_CRYPTER_H_
23 #define PADLOCK_AES_CRYPTER_H_
25 typedef struct padlock_aes_crypter_t padlock_aes_crypter_t
;
27 #include <crypto/crypters/crypter.h>
30 * Implementation of AES-128 using VIA Padlock.
32 struct padlock_aes_crypter_t
{
35 * The crypter_t interface.
37 crypter_t crypter_interface
;
41 * Constructor to create padlock_aes_crypter_t.
43 * @param key_size key size in bytes, currently supports only 16.
44 * @param algo algorithm to implement, must be ENCR_AES_CBC
45 * @return padlock_aes_crypter_t, NULL if not supported
47 padlock_aes_crypter_t
*padlock_aes_crypter_create(encryption_algorithm_t algo
,
50 #endif /* PADLOCK_AES_CRYPTER_H_ @}*/