Return to openssl_hmac.h CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libstrongswan / plugins / openssl |
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: * Implements HMAC based PRF and signer using OpenSSL's HMAC functions. 18: * 19: * @defgroup openssl_hmac openssl_hmac 20: * @{ @ingroup openssl_p 21: */ 22: 23: #ifndef OPENSSL_HMAC_H_ 24: #define OPENSSL_HMAC_H_ 25: 26: #include <crypto/prfs/prf.h> 27: #include <crypto/signers/signer.h> 28: 29: /** 30: * Creates a new prf_t object based on an HMAC. 31: * 32: * @param algo algorithm to implement 33: * @return prf_t object, NULL if not supported 34: */ 35: prf_t *openssl_hmac_prf_create(pseudo_random_function_t algo); 36: 37: /** 38: * Creates a new signer_t object based on an HMAC. 39: * 40: * @param algo algorithm to implement 41: * @return signer_t, NULL if not supported 42: */ 43: signer_t *openssl_hmac_signer_create(integrity_algorithm_t algo); 44: 45: #endif /** OPENSSL_HMAC_H_ @}*/