Annotation of embedaddon/strongswan/src/libstrongswan/plugins/xcbc/xcbc.h, revision 1.1

1.1     ! misho       1: /*
        !             2:  * Copyright (C) 2008 Martin Willi
        !             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:  * Message authentication using CBC crypter.
        !            18:  *
        !            19:  * This class implements the message authentication algorithm
        !            20:  * described in RFC3566.
        !            21:  *
        !            22:  * @defgroup xcbc xcbc
        !            23:  * @{ @ingroup xcbc_p
        !            24:  */
        !            25: 
        !            26: #ifndef XCBC_H_
        !            27: #define XCBC_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 XCBC MAC.
        !            34:  *
        !            35:  * @param algo         algorithm to implement
        !            36:  * @return                     prf_t object, NULL if not supported
        !            37:  */
        !            38: prf_t *xcbc_prf_create(pseudo_random_function_t algo);
        !            39: 
        !            40: /**
        !            41:  * Creates a new signer_t object based on a XCBC MAC.
        !            42:  *
        !            43:  * @param algo         algorithm to implement
        !            44:  * @return                     signer_t, NULL if not supported
        !            45:  */
        !            46: signer_t *xcbc_signer_create(integrity_algorithm_t algo);
        !            47: 
        !            48: #endif /** XCBC_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>