Annotation of embedaddon/strongswan/src/libstrongswan/plugins/botan/botan_crypter.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_crypter botan_crypter
                     27:  * @{ @ingroup botan_p
                     28:  */
                     29: 
                     30: #ifndef BOTAN_CRYPTER_H_
                     31: #define BOTAN_CRYPTER_H_
                     32: 
                     33: typedef struct botan_crypter_t botan_crypter_t;
                     34: 
                     35: #include <crypto/crypters/crypter.h>
                     36: 
                     37: /**
                     38:  * Implementation of crypters using Botan.
                     39:  */
                     40: struct botan_crypter_t {
                     41: 
                     42:        /**
                     43:         * Implements crypter_t interface.
                     44:         */
                     45:        crypter_t crypter;
                     46: };
                     47: 
                     48: /**
                     49:  * Constructor to create botan_crypter_t.
                     50:  *
                     51:  * @param algo                 algorithm to implement
                     52:  * @param key_size             key size in bytes
                     53:  * @return                             botan_crypter_t, NULL if not supported
                     54:  */
                     55: botan_crypter_t *botan_crypter_create(encryption_algorithm_t algo,
                     56:                                                                          size_t key_size);
                     57: 
                     58: #endif /** BOTAN_CRYPTER_H_ @}*/

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