2 * Copyright (C) 2010 Martin Willi
3 * Copyright (C) 2010 revosec AG
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup af_alg_prf af_alg_prf
24 typedef struct af_alg_prf_t af_alg_prf_t
;
26 #include <plugins/plugin.h>
27 #include <crypto/prfs/prf.h>
33 * Implementation of PRFs using AF_ALG.
38 * Implements prf_t interface.
44 * Creates a new af_alg_prf_t object.
46 * @param algo algorithm to implement
47 * @return af_alg_prf_t object, NULL if hash not supported
49 af_alg_prf_t
*af_alg_prf_create(pseudo_random_function_t algo
);
52 * Probe algorithms and return plugin features.
54 * @param features plugin features to create
55 * @param pos current position in features
57 void af_alg_prf_probe(plugin_feature_t
*features
, int *pos
);
59 #endif /** AF_ALG_PRF_H_ @}*/