Skip to content

Commit 3f735ca

Browse files
committed
autogen: Use MLD_XXX instead of MLD_SRC_XXX as header guard in mldsa/src
Signed-off-by: Hanno Becker <[email protected]>
1 parent 17a57ff commit 3f735ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+139
-139
lines changed

mldsa/src/cbmc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
44
*/
55

6-
#ifndef MLD_SRC_CBMC_H
7-
#define MLD_SRC_CBMC_H
6+
#ifndef MLD_CBMC_H
7+
#define MLD_CBMC_H
88
/***************************************************
99
* Basic replacements for __CPROVER_XXX contracts
1010
***************************************************/
@@ -142,4 +142,4 @@
142142

143143
#endif /* CBMC */
144144

145-
#endif /* !MLD_SRC_CBMC_H */
145+
#endif /* !MLD_CBMC_H */

mldsa/src/common.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
* https://csrc.nist.gov/pubs/fips/204/final
1313
*/
1414

15-
#ifndef MLD_SRC_COMMON_H
16-
#define MLD_SRC_COMMON_H
15+
#ifndef MLD_COMMON_H
16+
#define MLD_COMMON_H
1717

1818
#if defined(MLD_CONFIG_FILE)
1919
#include MLD_CONFIG_FILE
@@ -185,4 +185,4 @@ static MLD_INLINE void mld_zeroize(void *ptr, size_t len)
185185

186186

187187

188-
#endif /* !MLD_SRC_COMMON_H */
188+
#endif /* !MLD_COMMON_H */

mldsa/src/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* https://csrc.nist.gov/pubs/fips/204/final
1818
*/
1919

20-
#ifndef MLD_SRC_CONFIG_H
21-
#define MLD_SRC_CONFIG_H
20+
#ifndef MLD_CONFIG_H
21+
#define MLD_CONFIG_H
2222

2323
/******************************************************************************
2424
* Name: MLD_CONFIG_PARAMETER_SET
@@ -436,4 +436,4 @@
436436
#define MLD_DEFAULT_NAMESPACE_PREFIX PQCP_MLDSA_NATIVE_MLDSA87
437437
#endif
438438

439-
#endif /* !MLD_SRC_CONFIG_H */
439+
#endif /* !MLD_CONFIG_H */

mldsa/src/ct.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/hqbtIGFKIpU/m/H14H0wOlBgAJ
1919
*/
2020

21-
#ifndef MLD_SRC_CT_H
22-
#define MLD_SRC_CT_H
21+
#ifndef MLD_CT_H
22+
#define MLD_CT_H
2323

2424
#include <stdint.h>
2525
#include "cbmc.h"
@@ -233,4 +233,4 @@ __contract__(
233233
}
234234

235235

236-
#endif /* !MLD_SRC_CT_H */
236+
#endif /* !MLD_CT_H */

mldsa/src/debug.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright (c) The mldsa-native project authors
44
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
55
*/
6-
#ifndef MLD_SRC_DEBUG_H
7-
#define MLD_SRC_DEBUG_H
6+
#ifndef MLD_DEBUG_H
7+
#define MLD_DEBUG_H
88
#include "common.h"
99

1010
#if defined(MLDSA_DEBUG)
@@ -128,4 +128,4 @@ void mld_debug_check_bounds(const char *file, int line, const int32_t *ptr,
128128

129129

130130
#endif /* !MLDSA_DEBUG && !CBMC */
131-
#endif /* !MLD_SRC_DEBUG_H */
131+
#endif /* !MLD_DEBUG_H */

mldsa/src/fips202/fips202.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
* Copyright (c) The mldsa-native project authors
33
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
44
*/
5-
#ifndef MLD_SRC_FIPS202_FIPS202_H
6-
#define MLD_SRC_FIPS202_FIPS202_H
5+
#ifndef MLD_FIPS202_FIPS202_H
6+
#define MLD_FIPS202_FIPS202_H
77

88
#include <stddef.h>
99
#include <stdint.h>
@@ -231,4 +231,4 @@ __contract__(
231231
assigns(memory_slice(out, outlen))
232232
);
233233

234-
#endif /* !MLD_SRC_FIPS202_FIPS202_H */
234+
#endif /* !MLD_FIPS202_FIPS202_H */

mldsa/src/fips202/fips202x4.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright (c) The mldsa-native project authors
44
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
55
*/
6-
#ifndef MLD_SRC_FIPS202_FIPS202X4_H
7-
#define MLD_SRC_FIPS202_FIPS202X4_H
6+
#ifndef MLD_FIPS202_FIPS202X4_H
7+
#define MLD_FIPS202_FIPS202X4_H
88

99
#include <stddef.h>
1010
#include <stdint.h>
@@ -104,4 +104,4 @@ void mld_shake256x4_init(mld_shake256x4ctx *state);
104104
void mld_shake256x4_release(mld_shake256x4ctx *state);
105105

106106

107-
#endif /* !MLD_SRC_FIPS202_FIPS202X4_H */
107+
#endif /* !MLD_FIPS202_FIPS202X4_H */

mldsa/src/fips202/keccakf1600.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright (c) The mldsa-native project authors
44
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
55
*/
6-
#ifndef MLD_SRC_FIPS202_KECCAKF1600_H
7-
#define MLD_SRC_FIPS202_KECCAKF1600_H
6+
#ifndef MLD_FIPS202_KECCAKF1600_H
7+
#define MLD_FIPS202_KECCAKF1600_H
88
#include <stdint.h>
99
#include "../cbmc.h"
1010
#include "../common.h"
@@ -98,4 +98,4 @@ __contract__(
9898
assigns(memory_slice(state, sizeof(uint64_t) * MLD_KECCAK_LANES))
9999
);
100100

101-
#endif /* !MLD_SRC_FIPS202_KECCAKF1600_H */
101+
#endif /* !MLD_FIPS202_KECCAKF1600_H */

mldsa/src/fips202/native/aarch64/auto.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* https://eprint.iacr.org/2022/1243
1414
*/
1515

16-
#ifndef MLD_SRC_FIPS202_NATIVE_AARCH64_AUTO_H
17-
#define MLD_SRC_FIPS202_NATIVE_AARCH64_AUTO_H
16+
#ifndef MLD_FIPS202_NATIVE_AARCH64_AUTO_H
17+
#define MLD_FIPS202_NATIVE_AARCH64_AUTO_H
1818
/* Default FIPS202 assembly profile for AArch64 systems */
1919

2020
/*
@@ -68,4 +68,4 @@
6868

6969
#endif /* !__ARM_FEATURE_SHA3 */
7070

71-
#endif /* !MLD_SRC_FIPS202_NATIVE_AARCH64_AUTO_H */
71+
#endif /* !MLD_FIPS202_NATIVE_AARCH64_AUTO_H */

mldsa/src/fips202/native/aarch64/src/fips202_native_aarch64.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* Copyright (c) The mldsa-native project authors
44
* SPDX-License-Identifier: Apache-2.0 OR ISC OR MIT
55
*/
6-
#ifndef MLD_SRC_FIPS202_NATIVE_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
7-
#define MLD_SRC_FIPS202_NATIVE_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
6+
#ifndef MLD_FIPS202_NATIVE_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
7+
#define MLD_FIPS202_NATIVE_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H
88

99
#include <stdint.h>
1010
#include "../../../../cbmc.h"
@@ -59,4 +59,4 @@ __contract__(
5959
assigns(memory_slice(state, sizeof(uint64_t) * 25 * 4))
6060
);
6161

62-
#endif /* !MLD_SRC_FIPS202_NATIVE_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H */
62+
#endif /* !MLD_FIPS202_NATIVE_AARCH64_SRC_FIPS202_NATIVE_AARCH64_H */

0 commit comments

Comments
 (0)