Skip to content

Commit 8d3adfa

Browse files
committed
wolfssl/wolfcrypt/falcon.h and wolfssl/wolfcrypt/sphincs.h: in falcon_key and sphincs_key, use WC_BITFIELD foo:1, not bool, to fix readability-implicit-bool-conversion.
1 parent f738e44 commit 8d3adfa

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

wolfssl/wolfcrypt/falcon.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
/* Structs */
7575

7676
struct falcon_key {
77-
bool pubKeySet;
78-
bool prvKeySet;
77+
WC_BITFIELD pubKeySet:1;
78+
WC_BITFIELD prvKeySet:1;
7979
byte level;
8080

8181
#ifdef WOLF_CRYPTO_CB

wolfssl/wolfcrypt/sphincs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
/* Structs */
8484

8585
struct sphincs_key {
86-
bool pubKeySet;
87-
bool prvKeySet;
86+
WC_BITFIELD pubKeySet:1;
87+
WC_BITFIELD prvKeySet:1;
8888
byte level; /* 1,3 or 5 */
8989
byte optim; /* FAST_VARIANT or SMALL_VARIANT */
9090
byte p[SPHINCS_MAX_PUB_KEY_SIZE];

0 commit comments

Comments
 (0)