Skip to content

Commit 4f13d90

Browse files
committed
Update auto-generated files
Signed-off-by: Rod Chapman <[email protected]>
1 parent fcb36b9 commit 4f13d90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mldsa/src/native/aarch64/meta.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static MLD_INLINE int mld_rej_uniform_eta2_native(int32_t *r, int len,
7777
*/
7878
MLD_CT_TESTING_DECLASSIFY(buf, buflen);
7979
outlen = mld_rej_uniform_eta2_asm(r, buf, buflen, mld_rej_uniform_eta_table);
80-
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * outlen);
80+
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * (size_t)outlen);
8181
/* Safety: outlen is at most MLDSA_N and, hence, this cast is safe. */
8282
return (int)outlen;
8383
}
@@ -101,7 +101,7 @@ static MLD_INLINE int mld_rej_uniform_eta4_native(int32_t *r, int len,
101101
*/
102102
MLD_CT_TESTING_DECLASSIFY(buf, buflen);
103103
outlen = mld_rej_uniform_eta4_asm(r, buf, buflen, mld_rej_uniform_eta_table);
104-
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * outlen);
104+
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * (size_t)outlen);
105105
/* Safety: outlen is at most MLDSA_N and, hence, this cast is safe. */
106106
return (int)outlen;
107107
}

mldsa/src/native/x86_64/meta.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static MLD_INLINE int mld_rej_uniform_eta2_native(int32_t *r, int len,
8282
*/
8383
MLD_CT_TESTING_DECLASSIFY(buf, buflen);
8484
outlen = mld_rej_uniform_eta2_avx2(r, buf);
85-
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * outlen);
85+
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * (size_t)outlen);
8686
/* Safety: outlen is at most MLDSA_N and, hence, this cast is safe. */
8787
return (int)outlen;
8888
}
@@ -107,7 +107,7 @@ static MLD_INLINE int mld_rej_uniform_eta4_native(int32_t *r, int len,
107107
*/
108108
MLD_CT_TESTING_DECLASSIFY(buf, buflen);
109109
outlen = mld_rej_uniform_eta4_avx2(r, buf);
110-
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * outlen);
110+
MLD_CT_TESTING_SECRET(r, sizeof(int32_t) * (size_t)outlen);
111111
/* Safety: outlen is at most MLDSA_N and, hence, this cast is safe. */
112112
return (int)outlen;
113113
}

0 commit comments

Comments
 (0)