Annotation of embedaddon/strongswan/src/libstrongswan/plugins/botan/botan_ec_public_key.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: #ifndef BOTAN_EC_PUBLIC_KEY_H_
                     26: #define BOTAN_EC_PUBLIC_KEY_H_
                     27: 
                     28: #include <botan/ffi.h>
                     29: 
                     30: #include <credentials/builder.h>
                     31: #include <credentials/keys/public_key.h>
                     32: 
                     33: typedef struct botan_ec_public_key_t botan_ec_public_key_t;
                     34: 
                     35: /**
                     36:  * public_key_t implementation of ECDSA using botan.
                     37:  */
                     38: struct botan_ec_public_key_t {
                     39: 
                     40:        /**
                     41:         * Implements the public_key_t interface
                     42:         */
                     43:        public_key_t key;
                     44: };
                     45: 
                     46: /**
                     47:  * Load a ECDSA public key by adopting a botan_pubkey_t object.
                     48:  *
                     49:  * @param key          public key object (adopted)
                     50:  * @return                     loaded key, NULL on failure
                     51:  */
                     52: botan_ec_public_key_t *botan_ec_public_key_adopt(botan_pubkey_t key);
                     53: 
                     54: #endif /** BOTAN_EC_PUBLIC_KEY_H_ @}*/

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