forked from wolfSSL/wolfssl
fips related macros for configurations using AES direct and DES ECB
This commit is contained in:
@ -50,9 +50,22 @@
|
|||||||
#if defined(NO_WOLFSSL_MEMORY) && !defined(NO_CYASSL_MEMORY)
|
#if defined(NO_WOLFSSL_MEMORY) && !defined(NO_CYASSL_MEMORY)
|
||||||
#define NO_CYASSL_MEMORY
|
#define NO_CYASSL_MEMORY
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_KEY_GEN
|
#if defined(WOLFSSL_KEY_GEN) && !defined(CYASSL_KEY_GEN)
|
||||||
#define CYASSL_KEY_GEN
|
#define CYASSL_KEY_GEN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* AES */
|
||||||
|
#if defined(WOLFSSL_AES_DIRECT) && !defined(CYASSL_AES_DIRECT)
|
||||||
|
#define CYASSL_AES_DIRECT
|
||||||
|
#endif
|
||||||
|
#if defined(WOLFSSL_AES_COUNTER) && !defined(CYASSL_AES_COUNTER)
|
||||||
|
#define CYASSL_AES_COUNTER
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* DES */
|
||||||
|
#if defined(WOLFSSL_DES_ECB) && !defined(CYASSL_DES_ECB)
|
||||||
|
#define CYASSL_DES_ECB
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_SETTINGS_C_H */
|
#endif /* CTAO_CRYPT_SETTINGS_C_H */
|
||||||
|
|
||||||
|
@ -99,13 +99,13 @@ WOLFSSL_API int wc_RsaPublicKeyDecodeRaw(const byte* n, word32 nSz,
|
|||||||
const byte* e, word32 eSz, RsaKey* key);
|
const byte* e, word32 eSz, RsaKey* key);
|
||||||
#ifdef WOLFSSL_KEY_GEN
|
#ifdef WOLFSSL_KEY_GEN
|
||||||
WOLFSSL_API int wc_RsaKeyToDer(RsaKey*, byte* output, word32 inLen);
|
WOLFSSL_API int wc_RsaKeyToDer(RsaKey*, byte* output, word32 inLen);
|
||||||
WOLFSSL_API int wc_RsaKeyToPublicDer(RsaKey*, byte* output, word32 inLen);
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* HAVE_FIPS*/
|
#endif /* HAVE_FIPS*/
|
||||||
WOLFSSL_API int wc_RsaFlattenPublicKey(RsaKey*, byte*, word32*, byte*,
|
WOLFSSL_API int wc_RsaFlattenPublicKey(RsaKey*, byte*, word32*, byte*,
|
||||||
word32*);
|
word32*);
|
||||||
|
|
||||||
#ifdef WOLFSSL_KEY_GEN
|
#ifdef WOLFSSL_KEY_GEN
|
||||||
|
WOLFSSL_API int wc_RsaKeyToPublicDer(RsaKey*, byte* output, word32 inLen);
|
||||||
WOLFSSL_API int wc_MakeRsaKey(RsaKey* key, int size, long e, WC_RNG* rng);
|
WOLFSSL_API int wc_MakeRsaKey(RsaKey* key, int size, long e, WC_RNG* rng);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user