[NTOS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
[reactos.git] / reactos / include / reactos / libs / mbedtls / polarssl / pk_wrap.h
1 /**
2 * \file pk.h
3 *
4 * \brief Public Key abstraction layer: wrapper functions
5 *
6 * Copyright (C) 2006-2013, ARM Limited, All Rights Reserved
7 *
8 * This file is part of mbed TLS (https://polarssl.org)
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24
25 #ifndef POLARSSL_PK_WRAP_H
26 #define POLARSSL_PK_WRAP_H
27
28 #if !defined(POLARSSL_CONFIG_FILE)
29 #include "config.h"
30 #else
31 #include POLARSSL_CONFIG_FILE
32 #endif
33
34 #include "pk.h"
35
36 /* Container for RSA-alt */
37 typedef struct
38 {
39 void *key;
40 pk_rsa_alt_decrypt_func decrypt_func;
41 pk_rsa_alt_sign_func sign_func;
42 pk_rsa_alt_key_len_func key_len_func;
43 } rsa_alt_context;
44
45 #if defined(POLARSSL_RSA_C)
46 extern const pk_info_t rsa_info;
47 #endif
48
49 #if defined(POLARSSL_ECP_C)
50 extern const pk_info_t eckey_info;
51 extern const pk_info_t eckeydh_info;
52 #endif
53
54 #if defined(POLARSSL_ECDSA_C)
55 extern const pk_info_t ecdsa_info;
56 #endif
57
58 extern const pk_info_t rsa_alt_info;
59
60 #endif /* POLARSSL_PK_WRAP_H */