Skip to content

Commit 82d3215

Browse files
authored
Merge pull request #1227 from pq-code-package/no_std_header
Remove single occurrence of memcmp
2 parents fb3ce0b + 2ae333e commit 82d3215

File tree

25 files changed

+22
-38
lines changed

25 files changed

+22
-38
lines changed

dev/aarch64_clean/src/arith_native_aarch64.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define MLK_DEV_AARCH64_CLEAN_SRC_ARITH_NATIVE_AARCH64_H
77

88
#include <stdint.h>
9+
910
#include "../../../cbmc.h"
1011
#include "../../../common.h"
1112

dev/fips202/aarch64/src/fips202_native_aarch64.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define MLK_DEV_FIPS202_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
77

88
#include <stdint.h>
9+
910
#include "../../../../cbmc.h"
1011
#include "../../../../common.h"
1112

dev/fips202/aarch64/src/keccakf1600_round_constants.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
!defined(MLK_CONFIG_MULTILEVEL_NO_SHARED)
1414

1515
#include <stdint.h>
16+
1617
#include "fips202_native_aarch64.h"
1718

1819
MLK_ALIGN const uint64_t mlk_keccakf1600_round_constants[] = {

dev/x86_64/meta.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#define MLK_USE_NATIVE_POLY_DECOMPRESS_D11
3131

3232
#if !defined(__ASSEMBLER__)
33-
#include <string.h>
3433
#include "../../common.h"
3534
#include "../api.h"
3635
#include "src/arith_native_x86_64.h"

dev/x86_64/src/compress_avx2.c

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

2525
#include <immintrin.h>
2626
#include <stdint.h>
27-
#include <string.h>
2827
#include "arith_native_x86_64.h"
2928
#include "consts.h"
3029

mlkem/src/compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#if !defined(MLK_CONFIG_MULTILEVEL_NO_SHARED)
2222

2323
#include <stdint.h>
24-
#include <string.h>
24+
2525
#include "cbmc.h"
2626
#include "compress.h"
2727
#include "debug.h"

mlkem/src/compress.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#ifndef MLK_COMPRESS_H
2121
#define MLK_COMPRESS_H
2222

23-
#include <stddef.h>
2423
#include <stdint.h>
24+
2525
#include "cbmc.h"
2626
#include "common.h"
2727
#include "debug.h"

mlkem/src/fips202/fips202.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@
3434
#include "../common.h"
3535
#if !defined(MLK_CONFIG_MULTILEVEL_NO_SHARED)
3636

37-
#include <stddef.h>
3837
#include <stdint.h>
39-
#include <string.h>
38+
4039
#include "../verify.h"
4140
#include "fips202.h"
4241
#include "keccakf1600.h"

mlkem/src/fips202/fips202.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
*/
55
#ifndef MLK_FIPS202_FIPS202_H
66
#define MLK_FIPS202_FIPS202_H
7-
#include <stddef.h>
87
#include <stdint.h>
8+
99
#include "../cbmc.h"
1010
#include "../common.h"
1111

mlkem/src/fips202/fips202x4.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "../common.h"
1616
#if !defined(MLK_CONFIG_MULTILEVEL_NO_SHARED)
1717

18-
#include <string.h>
1918
#include "../verify.h"
2019
#include "fips202.h"
2120
#include "fips202x4.h"

0 commit comments

Comments
 (0)