2 * Copyright (C) 2010 Martin Willi
4 * Copyright (C) secunet Security Networks AG
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 af_alg_crypter af_alg_crypter
22 #ifndef AF_ALG_CRYPTER_H_
23 #define AF_ALG_CRYPTER_H_
25 typedef struct af_alg_crypter_t af_alg_crypter_t
;
27 #include <plugins/plugin.h>
28 #include <crypto/crypters/crypter.h>
30 /** Number of crypters */
31 #define AF_ALG_CRYPTER 28
34 * Implementation of signers using AF_ALG.
36 struct af_alg_crypter_t
{
39 * The crypter_t interface.
45 * Constructor to create af_alg_crypter_t.
47 * @param algo algorithm to implement
48 * @param key_size key size in bytes
49 * @return af_alg_crypter_t, NULL if not supported
51 af_alg_crypter_t
*af_alg_crypter_create(encryption_algorithm_t algo
,
55 * Probe algorithms and return plugin features.
57 * @param features plugin features to create
58 * @param pos current position in features
60 void af_alg_crypter_probe(plugin_feature_t
*features
, int *pos
);
62 #endif /** AF_ALG_CRYPTER_H_ @}*/