Annotation of embedaddon/strongswan/src/libstrongswan/plugins/botan/botan_diffie_hellman.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  * Copyright (C) 2018 RenĂ© Korthaus
                      3:  * Copyright (C) 2018 Konstantinos Kolelis
                      4:  * Rohde & Schwarz Cybersecurity GmbH
                      5:  *
                      6:  * Permission is hereby granted, free of charge, to any person obtaining a copy
                      7:  * of this software and associated documentation files (the "Software"), to deal
                      8:  * in the Software without restriction, including without limitation the rights
                      9:  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
                     10:  * copies of the Software, and to permit persons to whom the Software is
                     11:  * furnished to do so, subject to the following conditions:
                     12:  *
                     13:  * The above copyright notice and this permission notice shall be included in
                     14:  * all copies or substantial portions of the Software.
                     15:  *
                     16:  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                     17:  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                     19:  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                     20:  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                     21:  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
                     22:  * THE SOFTWARE.
                     23:  */
                     24: 
                     25: /**
                     26:  * @defgroup botan_diffie_hellman botan_diffie_hellman
                     27:  * @{ @ingroup botan_p
                     28:  */
                     29: 
                     30: #ifndef BOTAN_DIFFIE_HELLMAN_H_
                     31: #define BOTAN_DIFFIE_HELLMAN_H_
                     32: 
                     33: typedef struct botan_diffie_hellman_t botan_diffie_hellman_t;
                     34: 
                     35: #include <crypto/diffie_hellman.h>
                     36: 
                     37: /**
                     38:  * Implementation of the Diffie-Hellman algorithm using Botan.
                     39:  */
                     40: struct botan_diffie_hellman_t {
                     41: 
                     42:        /**
                     43:         * Implements diffie_hellman_t interface.
                     44:         */
                     45:        diffie_hellman_t dh;
                     46: };
                     47: 
                     48: /**
                     49:  * Creates a new botan_diffie_hellman_t object.
                     50:  *
                     51:  * @param group                        Diffie Hellman group number to use
                     52:  * @param ...                  expects generator and prime as chunk_t if MODP_CUSTOM
                     53:  * @return                             botan_diffie_hellman_t object,
                     54:  *                                             NULL if not supported
                     55:  */
                     56: botan_diffie_hellman_t *botan_diffie_hellman_create(
                     57:                                                                                        diffie_hellman_group_t group, ...);
                     58: 
                     59: #endif /** BOTAN_DIFFIE_HELLMAN_H_ @}*/

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