Annotation of embedaddon/strongswan/src/libstrongswan/plugins/cmac/cmac.h, revision 1.1.1.1
1.1 misho 1: /*
2: * Copyright (C) 2012 Tobias Brunner
3: * HSR Hochschule fuer Technik Rapperswil
4: *
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>.
9: *
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
13: * for more details.
14: */
15:
16: /**
17: * Cipher-based Message Authentication Code (CMAC).
18: *
19: * This class implements the message authentication algorithm
20: * described in RFC 4493.
21: *
22: * @defgroup cmac cmac
23: * @{ @ingroup cmac_p
24: */
25:
26: #ifndef CMAC_H_
27: #define CMAC_H_
28:
29: #include <crypto/prfs/prf.h>
30: #include <crypto/signers/signer.h>
31:
32: /**
33: * Creates a new prf_t object based on a CMAC.
34: *
35: * @param algo algorithm to implement
36: * @return prf_t object, NULL if not supported
37: */
38: prf_t *cmac_prf_create(pseudo_random_function_t algo);
39:
40: /**
41: * Creates a new signer_t object based on a CMAC.
42: *
43: * @param algo algorithm to implement
44: * @return signer_t, NULL if not supported
45: */
46: signer_t *cmac_signer_create(integrity_algorithm_t algo);
47:
48: #endif /** CMAC_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>