forked from wolfSSL/wolfssl
WIN fips section refactor / wolfEntropy API syntax adjustment
This commit is contained in:
@@ -44,8 +44,8 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$g")
|
#pragma code_seg(".fipsA$b")
|
||||||
#pragma const_seg(".fipsB$g")
|
#pragma const_seg(".fipsB$b")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@ IFDEF HAVE_FIPS
|
|||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
IF fips_version GE 2
|
IF fips_version GE 2
|
||||||
fipsAh SEGMENT ALIAS(".fipsA$h") 'CODE'
|
fipsAbc SEGMENT ALIAS(".fipsA$bc") 'CODE'
|
||||||
ELSE
|
ELSE
|
||||||
_text SEGMENT
|
_text SEGMENT
|
||||||
ENDIF
|
ENDIF
|
||||||
@@ -1523,7 +1523,7 @@ MAKE_RK256_b:
|
|||||||
|
|
||||||
|
|
||||||
IF fips_version GE 2
|
IF fips_version GE 2
|
||||||
fipsAh ENDS
|
fipsAbc ENDS
|
||||||
ELSE
|
ELSE
|
||||||
_text ENDS
|
_text ENDS
|
||||||
ENDIF
|
ENDIF
|
||||||
|
@@ -39,8 +39,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$n")
|
#pragma code_seg(".fipsA$c")
|
||||||
#pragma const_seg(".fipsB$n")
|
#pragma const_seg(".fipsB$c")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -38,8 +38,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$i")
|
#pragma code_seg(".fipsA$d")
|
||||||
#pragma const_seg(".fipsB$i")
|
#pragma const_seg(".fipsB$d")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -35,8 +35,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$m")
|
#pragma code_seg(".fipsA$e")
|
||||||
#pragma const_seg(".fipsB$m")
|
#pragma const_seg(".fipsB$e")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -41,8 +41,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$e")
|
#pragma code_seg(".fipsA$fa")
|
||||||
#pragma const_seg(".fipsB$e")
|
#pragma const_seg(".fipsB$fa")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -43,8 +43,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$e")
|
#pragma code_seg(".fipsA$fb")
|
||||||
#pragma const_seg(".fipsB$e")
|
#pragma const_seg(".fipsB$fb")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -35,8 +35,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$b")
|
#pragma code_seg(".fipsA$g")
|
||||||
#pragma const_seg(".fipsB$b")
|
#pragma const_seg(".fipsB$g")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -35,8 +35,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$m")
|
#pragma code_seg(".fipsA$h")
|
||||||
#pragma const_seg(".fipsB$m")
|
#pragma const_seg(".fipsB$h")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -39,8 +39,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$g")
|
#pragma code_seg(".fipsA$ba")
|
||||||
#pragma const_seg(".fipsB$g")
|
#pragma const_seg(".fipsB$ba")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -33,8 +33,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$e")
|
#pragma code_seg(".fipsA$ha")
|
||||||
#pragma const_seg(".fipsB$e")
|
#pragma const_seg(".fipsB$ha")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -50,8 +50,8 @@ This library contains implementation for the random number generator.
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$c")
|
#pragma code_seg(".fipsA$i")
|
||||||
#pragma const_seg(".fipsB$c")
|
#pragma const_seg(".fipsB$i")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1486,7 +1486,7 @@ int wc_Entropy_Get(int bits, unsigned char* entropy, word32 len)
|
|||||||
* @return ENTROPY_RT_E or ENTROPY_APT_E on failure.
|
* @return ENTROPY_RT_E or ENTROPY_APT_E on failure.
|
||||||
* @return BAD_MUTEX_E when unable to lock mutex.
|
* @return BAD_MUTEX_E when unable to lock mutex.
|
||||||
*/
|
*/
|
||||||
int wc_Entropy_OnDemandTest()
|
int wc_Entropy_OnDemandTest(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
@@ -1514,7 +1514,7 @@ int wc_Entropy_OnDemandTest()
|
|||||||
* @return 0 on success.
|
* @return 0 on success.
|
||||||
* @return Negative on failure.
|
* @return Negative on failure.
|
||||||
*/
|
*/
|
||||||
int Entropy_Init()
|
int Entropy_Init(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
@@ -1551,7 +1551,7 @@ int Entropy_Init()
|
|||||||
|
|
||||||
/* Finalize the data associated with the MemUse Entropy source.
|
/* Finalize the data associated with the MemUse Entropy source.
|
||||||
*/
|
*/
|
||||||
void Entropy_Final()
|
void Entropy_Final(void)
|
||||||
{
|
{
|
||||||
/* Only finalize when initialized. */
|
/* Only finalize when initialized. */
|
||||||
if (entropy_memuse_initialized) {
|
if (entropy_memuse_initialized) {
|
||||||
|
@@ -40,8 +40,8 @@ RSA keys can be used to encrypt, decrypt, sign and verify data.
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$e")
|
#pragma code_seg(".fipsA$j")
|
||||||
#pragma const_seg(".fipsB$e")
|
#pragma const_seg(".fipsB$j")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -41,8 +41,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$j")
|
#pragma code_seg(".fipsA$k")
|
||||||
#pragma const_seg(".fipsB$j")
|
#pragma const_seg(".fipsB$k")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -71,8 +71,8 @@ on the specific device platform.
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$d")
|
#pragma code_seg(".fipsA$l")
|
||||||
#pragma const_seg(".fipsB$d")
|
#pragma const_seg(".fipsB$l")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -34,8 +34,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$l")
|
#pragma code_seg(".fipsA$n")
|
||||||
#pragma const_seg(".fipsB$l")
|
#pragma const_seg(".fipsB$n")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -50,8 +50,8 @@
|
|||||||
#define FIPS_NO_WRAPPERS
|
#define FIPS_NO_WRAPPERS
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#pragma code_seg(".fipsA$k")
|
#pragma code_seg(".fipsA$m")
|
||||||
#pragma const_seg(".fipsB$k")
|
#pragma const_seg(".fipsB$m")
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user