source: UsbWattMeter/trunk/wolfssl-3.7.0/wolfssl/cyassl/ctaocrypt/settings_comp.h

Last change on this file was 167, checked in by coas-nagasima, 6 years ago

MIMEにSJISを設定

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr; charset=SHIFT_JIS
File size: 2.1 KB
Line 
1/* settings_comp.h
2 *
3 * Copyright (C) 2006-2015 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL. (formerly known as CyaSSL)
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 */
21
22#ifndef CTAO_CRYPT_SETTINGS_C_H
23#define CTAO_CRYPT_SETTINGS_C_H
24
25
26/* since fips overrides rsa.h map compatibility here */
27#if !defined(NO_RSA)
28 #ifdef WOLFSSL_KEY_GEN
29 #define RsaKeyToDer wc_RsaKeyToDer
30 #endif
31
32 #define RsaPrivateKeyDecode wc_RsaPrivateKeyDecode
33 #define RsaPublicKeyDecode wc_RsaPublicKeyDecode
34 #define RsaPublicKeyDecodeRaw wc_RsaPublicKeyDecodeRaw
35#endif /* have rsa and HAVE_FIPS */
36
37/* Macro redefinitions for compatibility */
38#ifdef HAVE_NTRU
39 #define MakeNtruCert wc_MakeNtruCert
40#endif
41#if defined(WOLFSSL_SHA512) && !defined(CYASSL_SHA512)
42 #define CYASSL_SHA512
43#endif
44#if defined(WOLFSSL_SHA384) && !defined(CYASSL_SHA384)
45 #define CYASSL_SHA384
46#endif
47#if defined(WOLFSSL_LEANPSK) && !defined(CYASSL_LEANPSK)
48 #define CYASSL_LEANPSK
49#endif
50#if defined(NO_WOLFSSL_MEMORY) && !defined(NO_CYASSL_MEMORY)
51 #define NO_CYASSL_MEMORY
52#endif
53#if defined(WOLFSSL_KEY_GEN) && !defined(CYASSL_KEY_GEN)
54 #define CYASSL_KEY_GEN
55#endif
56
57/* AES */
58#if defined(WOLFSSL_AES_DIRECT) && !defined(CYASSL_AES_DIRECT)
59 #define CYASSL_AES_DIRECT
60#endif
61#if defined(WOLFSSL_AES_COUNTER) && !defined(CYASSL_AES_COUNTER)
62 #define CYASSL_AES_COUNTER
63#endif
64
65/* DES */
66#if defined(WOLFSSL_DES_ECB) && !defined(CYASSL_DES_ECB)
67 #define CYASSL_DES_ECB
68#endif
69
70#endif /* CTAO_CRYPT_SETTINGS_C_H */
71
Note: See TracBrowser for help on using the repository browser.