forked from wolfSSL/wolfssl
cyassl coding header and asthetics to settings macros
This commit is contained in:
@@ -23,6 +23,10 @@
|
||||
#ifndef CTAO_CRYPT_CODING_H
|
||||
#define CTAO_CRYPT_CODING_H
|
||||
|
||||
#ifndef HAVE_FIPS
|
||||
#include <wolfssl/wolfcrypt/coding.h>
|
||||
#else
|
||||
|
||||
#include <cyassl/ctaocrypt/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -54,5 +58,6 @@ CYASSL_LOCAL int Base64_Decode(const byte* in, word32 inLen, byte* out,
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* HAVE_FIPS */
|
||||
#endif /* CTAO_CRYPT_CODING_H */
|
||||
|
||||
|
@@ -41,10 +41,10 @@
|
||||
#define RNG_GenerateBlock wc_RNG_GenerateBlock
|
||||
#define RNG_GenerateByte wc_RNG_GenerateByte
|
||||
|
||||
#if defined(HAVE_HASHDRBG) || defined(NO_RC4)
|
||||
#if defined(HAVE_HASHDRBG) || defined(NO_RC4)
|
||||
#define FreeRng wc_FreeRng
|
||||
#define RNG_HealthTest wc_RNG_HealthTest
|
||||
#endif /* HAVE_HASHDRBG || NO_RC4 */
|
||||
#endif /* HAVE_HASHDRBG || NO_RC4 */
|
||||
|
||||
#ifndef NO_AES
|
||||
#include <wolfssl/wolfcrypt/aes.h>
|
||||
@@ -83,7 +83,7 @@
|
||||
#endif
|
||||
#endif /* NO_AES */
|
||||
|
||||
#ifndef NO_RSA
|
||||
#ifndef NO_RSA
|
||||
#include <wolfssl/wolfcrypt/rsa.h>
|
||||
#define InitRsaKey wc_InitRsaKey
|
||||
#define FreeRsaKey wc_FreeRsaKey
|
||||
@@ -108,9 +108,9 @@
|
||||
#define RsaInitCavium wc_RsaInitCavium
|
||||
#define RsaFreeCavium wc_RsaFreeCavium
|
||||
#endif
|
||||
#endif /* NO_RSA */
|
||||
#endif /* NO_RSA */
|
||||
|
||||
#ifndef NO_HMAC
|
||||
#ifndef NO_HMAC
|
||||
#include <wolfssl/wolfcrypt/hmac.h>
|
||||
#define HmacSetKey wc_HmacSetKey
|
||||
#define HmacUpdate wc_HmacUpdate
|
||||
@@ -125,7 +125,7 @@
|
||||
#endif /* HAVE_HKDF */
|
||||
#endif /* NO_HMAC */
|
||||
|
||||
#ifndef NO_DES3
|
||||
#ifndef NO_DES3
|
||||
#include <wolfssl/wolfcrypt/des3.h>
|
||||
#define Des_SetKey wc_Des_SetKey
|
||||
#define Des_SetIV wc_Des_SetIV
|
||||
@@ -142,25 +142,25 @@
|
||||
#define Des3_InitCavium wc_Des3_InitCavium
|
||||
#define Des3_FreeCavium wc_Des3_FreeCavium
|
||||
#endif
|
||||
#endif /* NO_DES3 */
|
||||
#endif /* NO_DES3 */
|
||||
|
||||
#ifndef NO_SHA
|
||||
#ifndef NO_SHA
|
||||
#include <wolfssl/wolfcrypt/sha.h>
|
||||
#define InitSha wc_InitSha
|
||||
#define ShaUpdate wc_ShaUpdate
|
||||
#define ShaFinal wc_ShaFinal
|
||||
#define ShaHash wc_ShaHash
|
||||
#endif /* NO_SHA */
|
||||
#endif /* NO_SHA */
|
||||
|
||||
#ifndef NO_SHA256
|
||||
#ifndef NO_SHA256
|
||||
#include <wolfssl/wolfcrypt/sha256.h>
|
||||
#define InitSha256 wc_InitSha256
|
||||
#define Sha256Update wc_Sha256Update
|
||||
#define Sha256Final wc_Sha256Final
|
||||
#define Sha256Hash wc_Sha256Hash
|
||||
#endif /* NO_SHA256 */
|
||||
#endif /* NO_SHA256 */
|
||||
|
||||
#ifdef WOLFSSL_SHA512
|
||||
#ifdef WOLFSSL_SHA512
|
||||
#include <wolfssl/wolfcrypt/sha512.h>
|
||||
#define InitSha512 wc_InitSha512
|
||||
#define Sha512Update wc_Sha512Update
|
||||
@@ -173,7 +173,7 @@
|
||||
#define Sha384Final wc_Sha384Final
|
||||
#define Sha384Hash wc_Sha384Hash
|
||||
#endif /* WOLFSSL_SHA384 */
|
||||
#endif /* WOLFSSL_SHA512 */
|
||||
#endif /* WOLFSSL_SHA512 */
|
||||
#endif /* HAVE_FIPS */
|
||||
|
||||
#endif /* CTAO_CRYPT_SETTINGS_C_H */
|
||||
|
Reference in New Issue
Block a user