WIN fips section refactor / wolfEntropy API syntax adjustment

This commit is contained in:
kaleb-himes
2024-04-04 14:45:20 -04:00
parent a3413ad009
commit e45867bbc3
17 changed files with 37 additions and 37 deletions

View File

@@ -44,8 +44,8 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$g")
#pragma const_seg(".fipsB$g")
#pragma code_seg(".fipsA$b")
#pragma const_seg(".fipsB$b")
#endif
#endif

View File

@@ -40,7 +40,7 @@ IFDEF HAVE_FIPS
ENDIF
IF fips_version GE 2
fipsAh SEGMENT ALIAS(".fipsA$h") 'CODE'
fipsAbc SEGMENT ALIAS(".fipsA$bc") 'CODE'
ELSE
_text SEGMENT
ENDIF
@@ -1523,7 +1523,7 @@ MAKE_RK256_b:
IF fips_version GE 2
fipsAh ENDS
fipsAbc ENDS
ELSE
_text ENDS
ENDIF

View File

@@ -39,8 +39,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$n")
#pragma const_seg(".fipsB$n")
#pragma code_seg(".fipsA$c")
#pragma const_seg(".fipsB$c")
#endif
#endif

View File

@@ -38,8 +38,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$i")
#pragma const_seg(".fipsB$i")
#pragma code_seg(".fipsA$d")
#pragma const_seg(".fipsB$d")
#endif
#endif

View File

@@ -35,8 +35,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$m")
#pragma const_seg(".fipsB$m")
#pragma code_seg(".fipsA$e")
#pragma const_seg(".fipsB$e")
#endif
#endif

View File

@@ -41,8 +41,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$e")
#pragma const_seg(".fipsB$e")
#pragma code_seg(".fipsA$fa")
#pragma const_seg(".fipsB$fa")
#endif
#endif

View File

@@ -43,8 +43,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$e")
#pragma const_seg(".fipsB$e")
#pragma code_seg(".fipsA$fb")
#pragma const_seg(".fipsB$fb")
#endif
#endif

View File

@@ -35,8 +35,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$b")
#pragma const_seg(".fipsB$b")
#pragma code_seg(".fipsA$g")
#pragma const_seg(".fipsB$g")
#endif
#endif

View File

@@ -35,8 +35,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$m")
#pragma const_seg(".fipsB$m")
#pragma code_seg(".fipsA$h")
#pragma const_seg(".fipsB$h")
#endif
#endif

View File

@@ -39,8 +39,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$g")
#pragma const_seg(".fipsB$g")
#pragma code_seg(".fipsA$ba")
#pragma const_seg(".fipsB$ba")
#endif
#endif

View File

@@ -33,8 +33,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$e")
#pragma const_seg(".fipsB$e")
#pragma code_seg(".fipsA$ha")
#pragma const_seg(".fipsB$ha")
#endif
#endif

View File

@@ -50,8 +50,8 @@ This library contains implementation for the random number generator.
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$c")
#pragma const_seg(".fipsB$c")
#pragma code_seg(".fipsA$i")
#pragma const_seg(".fipsB$i")
#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 BAD_MUTEX_E when unable to lock mutex.
*/
int wc_Entropy_OnDemandTest()
int wc_Entropy_OnDemandTest(void)
{
int ret = 0;
@@ -1514,7 +1514,7 @@ int wc_Entropy_OnDemandTest()
* @return 0 on success.
* @return Negative on failure.
*/
int Entropy_Init()
int Entropy_Init(void)
{
int ret = 0;
@@ -1551,7 +1551,7 @@ int Entropy_Init()
/* Finalize the data associated with the MemUse Entropy source.
*/
void Entropy_Final()
void Entropy_Final(void)
{
/* Only finalize when initialized. */
if (entropy_memuse_initialized) {

View File

@@ -40,8 +40,8 @@ RSA keys can be used to encrypt, decrypt, sign and verify data.
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$e")
#pragma const_seg(".fipsB$e")
#pragma code_seg(".fipsA$j")
#pragma const_seg(".fipsB$j")
#endif
#endif

View File

@@ -41,8 +41,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$j")
#pragma const_seg(".fipsB$j")
#pragma code_seg(".fipsA$k")
#pragma const_seg(".fipsB$k")
#endif
#endif

View File

@@ -71,8 +71,8 @@ on the specific device platform.
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$d")
#pragma const_seg(".fipsB$d")
#pragma code_seg(".fipsA$l")
#pragma const_seg(".fipsB$l")
#endif
#endif

View File

@@ -34,8 +34,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$l")
#pragma const_seg(".fipsB$l")
#pragma code_seg(".fipsA$n")
#pragma const_seg(".fipsB$n")
#endif
#endif

View File

@@ -50,8 +50,8 @@
#define FIPS_NO_WRAPPERS
#ifdef USE_WINDOWS_API
#pragma code_seg(".fipsA$k")
#pragma const_seg(".fipsB$k")
#pragma code_seg(".fipsA$m")
#pragma const_seg(".fipsB$m")
#endif
#endif