Skip to content

Commit 70c362f

Browse files
authored
Merge pull request #6736 from ejohnstown/fips-update
FIPS Update
2 parents c5c968a + b132946 commit 70c362f

3 files changed

Lines changed: 45 additions & 2 deletions

File tree

fips-check.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ linuxv5)
168168
'wolfssl/wolfcrypt/cmac.h:WCv5.0-RC12'
169169
'wolfssl/wolfcrypt/dh.h:WCv5.0-RC12'
170170
'wolfssl/wolfcrypt/ecc.h:WCv5.0-RC12'
171+
'wolfssl/wolfcrypt/fips_test.h:WCv5.0-RC12'
171172
'wolfssl/wolfcrypt/hmac.h:WCv5.0-RC12'
172173
'wolfssl/wolfcrypt/kdf.h:WCv5.0-RC12'
173174
'wolfssl/wolfcrypt/random.h:WCv5.0-RC12'
@@ -178,6 +179,48 @@ linuxv5)
178179
'wolfssl/wolfcrypt/sha512.h:WCv5.0-RC12'
179180
)
180181
;;
182+
linuxv5.2.1)
183+
FIPS_OPTION='v5'
184+
FIPS_FILES=(
185+
'wolfcrypt/src/fips.c:v5.2.1-stable'
186+
'wolfcrypt/src/fips_test.c:v5.2.1-stable'
187+
'wolfcrypt/src/wolfcrypt_first.c:v5.2.1-stable'
188+
'wolfcrypt/src/wolfcrypt_last.c:v5.2.1-stable'
189+
'wolfssl/wolfcrypt/fips.h:v5.2.1-stable'
190+
)
191+
WOLFCRYPT_FILES=(
192+
'wolfcrypt/src/aes.c:v5.2.1-stable'
193+
'wolfcrypt/src/aes_asm.asm:v5.2.1-stable'
194+
'wolfcrypt/src/aes_asm.S:v5.2.1-stable'
195+
'wolfcrypt/src/aes_gcm_asm.S:v5.2.1-stable'
196+
'wolfcrypt/src/cmac.c:v5.2.1-stable'
197+
'wolfcrypt/src/dh.c:v5.2.1-stable'
198+
'wolfcrypt/src/ecc.c:v5.2.1-stable'
199+
'wolfcrypt/src/hmac.c:v5.2.1-stable'
200+
'wolfcrypt/src/kdf.c:v5.2.1-stable'
201+
'wolfcrypt/src/random.c:v5.2.1-stable'
202+
'wolfcrypt/src/rsa.c:v5.2.1-stable'
203+
'wolfcrypt/src/sha.c:v5.2.1-stable'
204+
'wolfcrypt/src/sha256.c:v5.2.1-stable'
205+
'wolfcrypt/src/sha256_asm.S:v5.2.1-stable'
206+
'wolfcrypt/src/sha3.c:v5.2.1-stable'
207+
'wolfcrypt/src/sha512.c:v5.2.1-stable'
208+
'wolfcrypt/src/sha512_asm.S:v5.2.1-stable'
209+
'wolfssl/wolfcrypt/aes.h:v5.2.1-stable'
210+
'wolfssl/wolfcrypt/cmac.h:v5.2.1-stable'
211+
'wolfssl/wolfcrypt/dh.h:v5.2.1-stable'
212+
'wolfssl/wolfcrypt/ecc.h:v5.2.1-stable'
213+
'wolfssl/wolfcrypt/fips_test.h:v5.2.1-stable'
214+
'wolfssl/wolfcrypt/hmac.h:v5.2.1-stable'
215+
'wolfssl/wolfcrypt/kdf.h:v5.2.1-stable'
216+
'wolfssl/wolfcrypt/random.h:v5.2.1-stable'
217+
'wolfssl/wolfcrypt/rsa.h:v5.2.1-stable'
218+
'wolfssl/wolfcrypt/sha.h:v5.2.1-stable'
219+
'wolfssl/wolfcrypt/sha256.h:v5.2.1-stable'
220+
'wolfssl/wolfcrypt/sha3.h:v5.2.1-stable'
221+
'wolfssl/wolfcrypt/sha512.h:v5.2.1-stable'
222+
)
223+
;;
181224
fips-ready|fips-dev)
182225
FIPS_OPTION='ready'
183226
FIPS_FILES=(

wolfcrypt/src/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ const char* wc_GetErrorString(int error)
595595
case SM4_CCM_AUTH_E:
596596
return "SM4-CCM Authentication check fail";
597597

598-
case DEGRADED_FIPS_E:
598+
case FIPS_DEGRADED_E:
599599
return "FIPS module in DEGRADED mode";
600600

601601
default:

wolfssl/wolfcrypt/error-crypt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ enum {
6666

6767
MEMORY_E = -125, /* out of memory error */
6868
VAR_STATE_CHANGE_E = -126, /* var state modified by different thread */
69-
DEGRADED_FIPS_E = -127, /* FIPS Module in degraded mode */
69+
FIPS_DEGRADED_E = -127, /* FIPS Module in degraded mode */
7070

7171
RSA_WRONG_TYPE_E = -130, /* RSA wrong block type for RSA function */
7272
RSA_BUFFER_E = -131, /* RSA buffer error, output too small or

0 commit comments

Comments
 (0)