Skip to content

Commit 166e6c4

Browse files
committed
Port the PQ examples to the current wolfSSL API
1 parent 4483350 commit 166e6c4

4 files changed

Lines changed: 2 additions & 4 deletions

File tree

pq/ml_kem/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ sudo ldconfig
1515
Build the ML-KEM example:
1616

1717
```sh
18-
$ gcc -o ml_kem ml_kem.c -I/usr/local/include -L/usr/local/lib -lwolfssl
18+
$ make ml_kem
1919
```
2020

2121
# Usage

pq/ml_kem/ml_kem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ char* to_hex_string(const unsigned char* array, size_t length)
4949
}
5050

5151

52-
int main(int argc, char** argv)
52+
int main(void)
5353
{
5454
MlKemKey AliceKey;
5555
MlKemKey BobKey;

pq/stateful_hash_sig/lms_example.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
#ifdef WOLFSSL_HAVE_LMS
2828

29-
#include <wolfssl/wolfcrypt/lms.h>
3029
#ifdef HAVE_LIBLMS
3130
#include <wolfssl/wolfcrypt/ext_lms.h>
3231
#else

pq/stateful_hash_sig/xmss_example.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
#ifdef WOLFSSL_HAVE_XMSS
3030

31-
#include <wolfssl/wolfcrypt/xmss.h>
3231
#ifdef HAVE_LIBXMSS
3332
#include <wolfssl/wolfcrypt/ext_xmss.h>
3433
#else

0 commit comments

Comments
 (0)