|
1 | | -#ifndef CLIENT_CRYPTO_H_ |
2 | | -#define CLIENT_CRYPTO_H_ |
| 1 | +#ifndef DEMO_CLIENT_CRYPTO_H_ |
| 2 | +#define DEMO_CLIENT_CRYPTO_H_ |
| 3 | + |
3 | 4 | #include "wolfhsm/wh_client.h" |
4 | 5 |
|
5 | | -#if !defined(NO_RSA) |
6 | 6 | int wh_DemoClient_CryptoRsa(whClientContext* clientContext); |
7 | 7 | int wh_DemoClient_CryptoRsaImport(whClientContext* clientContext); |
8 | | -#endif |
9 | 8 |
|
10 | | -#ifdef HAVE_CURVE25519 |
11 | 9 | int wh_DemoClient_CryptoCurve25519(whClientContext* clientContext); |
12 | 10 | int wh_DemoClient_CryptoCurve25519Import(whClientContext* clientContext); |
13 | | -#endif /* HAVE_CURVE25519 */ |
14 | 11 |
|
15 | | -#if defined(HAVE_ECC) |
16 | 12 | int wh_DemoClient_CryptoEcc(whClientContext* clientContext); |
17 | 13 | int wh_DemoClient_CryptoEccImport(whClientContext* clientContext); |
18 | | -#endif /* !NO_ECC && HAVE_ECC */ |
19 | 14 |
|
20 | | -#if !defined(NO_AES) && defined(HAVE_AES_CBC) |
21 | 15 | int wh_DemoClient_CryptoAesCbc(whClientContext* clientContext); |
22 | 16 | int wh_DemoClient_CryptoAesCbcImport(whClientContext* clientContext); |
23 | | -#endif /* !NO_AES && HAVE_AES */ |
24 | 17 |
|
25 | | -#if !defined(NO_AES) && defined(HAVE_AESGCM) |
26 | 18 | int wh_DemoClient_CryptoAesGcm(whClientContext* clientContext); |
27 | 19 | int wh_DemoClient_CryptoAesGcmImport(whClientContext* clientContext); |
28 | | -#endif /* !NOAES && HAVE_AES && HAVE_ASEGCM */ |
29 | 20 |
|
30 | | -#ifdef WOLFSSL_CMAC |
31 | 21 | int wh_DemoClient_CryptoCmac(whClientContext* clientContext); |
32 | 22 | int wh_DemoClient_CryptoCmacImport(whClientContext* clientContext); |
33 | 23 | int wh_DemoClient_CryptoCmacOneshotImport(whClientContext* clientContext); |
34 | | -#endif /* WOLFSSL_CMAC */ |
35 | 24 |
|
36 | | -#endif /* CLIENT_CRYPTO_H_ */ |
| 25 | +#endif /* !DEMO_CLIENT_CRYPTO_H_ */ |
0 commit comments