3838MLD_MUST_CHECK_RETURN_VALUE
3939static MLD_INLINE int mld_ntt_native (int32_t data [MLDSA_N ])
4040{
41- mld_ntt_asm (data , mld_aarch64_ntt_zetas_layer123456 ,
42- mld_aarch64_ntt_zetas_layer78 );
41+ mld_ntt_aarch64_asm (data , mld_aarch64_ntt_zetas_layer123456 ,
42+ mld_aarch64_ntt_zetas_layer78 );
4343 return MLD_NATIVE_FUNC_SUCCESS ;
4444}
4545
4646MLD_MUST_CHECK_RETURN_VALUE
4747static MLD_INLINE int mld_intt_native (int32_t data [MLDSA_N ])
4848{
49- mld_intt_asm (data , mld_aarch64_intt_zetas_layer78 ,
50- mld_aarch64_intt_zetas_layer123456 );
49+ mld_intt_aarch64_asm (data , mld_aarch64_intt_zetas_layer78 ,
50+ mld_aarch64_intt_zetas_layer123456 );
5151 return MLD_NATIVE_FUNC_SUCCESS ;
5252}
5353
@@ -63,7 +63,8 @@ static MLD_INLINE int mld_rej_uniform_native(int32_t *r, unsigned len,
6363 }
6464
6565 /* Safety: outlen is at most MLDSA_N, hence, this cast is safe. */
66- return (int )mld_rej_uniform_asm (r , buf , buflen , mld_rej_uniform_table );
66+ return (int )mld_rej_uniform_aarch64_asm (r , buf , buflen ,
67+ mld_rej_uniform_table );
6768}
6869
6970#if !defined(MLD_CONFIG_NO_KEYPAIR_API )
@@ -87,7 +88,8 @@ static MLD_INLINE int mld_rej_uniform_eta2_native(int32_t *r, unsigned len,
8788 * We declassify prior the input data and mark the outputs as secret.
8889 */
8990 MLD_CT_TESTING_DECLASSIFY (buf , buflen );
90- outlen = mld_rej_uniform_eta2_asm (r , buf , buflen , mld_rej_uniform_eta_table );
91+ outlen = mld_rej_uniform_eta2_aarch64_asm (r , buf , buflen ,
92+ mld_rej_uniform_eta_table );
9193 MLD_CT_TESTING_SECRET (r , sizeof (int32_t ) * outlen );
9294 /* Safety: outlen is at most MLDSA_N and, hence, this cast is safe. */
9395 return (int )outlen ;
@@ -114,7 +116,8 @@ static MLD_INLINE int mld_rej_uniform_eta4_native(int32_t *r, unsigned len,
114116 * We declassify prior the input data and mark the outputs as secret.
115117 */
116118 MLD_CT_TESTING_DECLASSIFY (buf , buflen );
117- outlen = mld_rej_uniform_eta4_asm (r , buf , buflen , mld_rej_uniform_eta_table );
119+ outlen = mld_rej_uniform_eta4_aarch64_asm (r , buf , buflen ,
120+ mld_rej_uniform_eta_table );
118121 MLD_CT_TESTING_SECRET (r , sizeof (int32_t ) * outlen );
119122 /* Safety: outlen is at most MLDSA_N and, hence, this cast is safe. */
120123 return (int )outlen ;
@@ -128,7 +131,7 @@ static MLD_INLINE int mld_rej_uniform_eta4_native(int32_t *r, unsigned len,
128131MLD_MUST_CHECK_RETURN_VALUE
129132static MLD_INLINE int mld_poly_decompose_32_native (int32_t * a1 , int32_t * a0 )
130133{
131- mld_poly_decompose_32_asm (a1 , a0 );
134+ mld_poly_decompose_32_aarch64_asm (a1 , a0 );
132135 return MLD_NATIVE_FUNC_SUCCESS ;
133136}
134137#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLD_CONFIG_PARAMETER_SET == 65 \
@@ -138,7 +141,7 @@ static MLD_INLINE int mld_poly_decompose_32_native(int32_t *a1, int32_t *a0)
138141MLD_MUST_CHECK_RETURN_VALUE
139142static MLD_INLINE int mld_poly_decompose_88_native (int32_t * a1 , int32_t * a0 )
140143{
141- mld_poly_decompose_88_asm (a1 , a0 );
144+ mld_poly_decompose_88_aarch64_asm (a1 , a0 );
142145 return MLD_NATIVE_FUNC_SUCCESS ;
143146}
144147#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLD_CONFIG_PARAMETER_SET == 44 \
@@ -148,7 +151,7 @@ static MLD_INLINE int mld_poly_decompose_88_native(int32_t *a1, int32_t *a0)
148151MLD_MUST_CHECK_RETURN_VALUE
149152static MLD_INLINE int mld_poly_caddq_native (int32_t a [MLDSA_N ])
150153{
151- mld_poly_caddq_asm (a );
154+ mld_poly_caddq_aarch64_asm (a );
152155 return MLD_NATIVE_FUNC_SUCCESS ;
153156}
154157
@@ -159,7 +162,7 @@ MLD_MUST_CHECK_RETURN_VALUE
159162static MLD_INLINE int mld_poly_use_hint_32_native (int32_t * b , const int32_t * a ,
160163 const int32_t * h )
161164{
162- mld_poly_use_hint_32_asm (b , a , h );
165+ mld_poly_use_hint_32_aarch64_asm (b , a , h );
163166 return MLD_NATIVE_FUNC_SUCCESS ;
164167}
165168#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLD_CONFIG_PARAMETER_SET == 65 \
@@ -170,7 +173,7 @@ MLD_MUST_CHECK_RETURN_VALUE
170173static MLD_INLINE int mld_poly_use_hint_88_native (int32_t * b , const int32_t * a ,
171174 const int32_t * h )
172175{
173- mld_poly_use_hint_88_asm (b , a , h );
176+ mld_poly_use_hint_88_aarch64_asm (b , a , h );
174177 return MLD_NATIVE_FUNC_SUCCESS ;
175178}
176179#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLD_CONFIG_PARAMETER_SET == 44 \
@@ -180,15 +183,15 @@ static MLD_INLINE int mld_poly_use_hint_88_native(int32_t *b, const int32_t *a,
180183MLD_MUST_CHECK_RETURN_VALUE
181184static MLD_INLINE int mld_poly_chknorm_native (const int32_t * a , int32_t B )
182185{
183- return mld_poly_chknorm_asm (a , B );
186+ return mld_poly_chknorm_aarch64_asm (a , B );
184187}
185188
186189#if !defined(MLD_CONFIG_NO_SIGN_API ) || !defined(MLD_CONFIG_NO_VERIFY_API )
187190#if defined(MLD_CONFIG_MULTILEVEL_WITH_SHARED ) || MLD_CONFIG_PARAMETER_SET == 44
188191MLD_MUST_CHECK_RETURN_VALUE
189192static MLD_INLINE int mld_polyz_unpack_17_native (int32_t * r , const uint8_t * buf )
190193{
191- mld_polyz_unpack_17_asm (r , buf , mld_polyz_unpack_17_indices );
194+ mld_polyz_unpack_17_aarch64_asm (r , buf , mld_polyz_unpack_17_indices );
192195 return MLD_NATIVE_FUNC_SUCCESS ;
193196}
194197#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLD_CONFIG_PARAMETER_SET == 44 \
@@ -199,7 +202,7 @@ static MLD_INLINE int mld_polyz_unpack_17_native(int32_t *r, const uint8_t *buf)
199202MLD_MUST_CHECK_RETURN_VALUE
200203static MLD_INLINE int mld_polyz_unpack_19_native (int32_t * r , const uint8_t * buf )
201204{
202- mld_polyz_unpack_19_asm (r , buf , mld_polyz_unpack_19_indices );
205+ mld_polyz_unpack_19_aarch64_asm (r , buf , mld_polyz_unpack_19_indices );
203206 return MLD_NATIVE_FUNC_SUCCESS ;
204207}
205208#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLD_CONFIG_PARAMETER_SET == 65 \
@@ -213,7 +216,7 @@ static MLD_INLINE int mld_poly_pointwise_montgomery_native(
213216 int32_t out [MLDSA_N ], const int32_t in0 [MLDSA_N ],
214217 const int32_t in1 [MLDSA_N ])
215218{
216- mld_poly_pointwise_montgomery_asm (out , in0 , in1 );
219+ mld_poly_pointwise_montgomery_aarch64_asm (out , in0 , in1 );
217220 return MLD_NATIVE_FUNC_SUCCESS ;
218221}
219222#endif /* !MLD_CONFIG_NO_SIGN_API || !MLD_CONFIG_NO_VERIFY_API || \
@@ -225,7 +228,7 @@ static MLD_INLINE int mld_polyvecl_pointwise_acc_montgomery_l4_native(
225228 int32_t w [MLDSA_N ], const int32_t u [4 ][MLDSA_N ],
226229 const int32_t v [4 ][MLDSA_N ])
227230{
228- mld_polyvecl_pointwise_acc_montgomery_l4_asm (w , u , v );
231+ mld_polyvecl_pointwise_acc_montgomery_l4_aarch64_asm (w , u , v );
229232 return MLD_NATIVE_FUNC_SUCCESS ;
230233}
231234#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLDSA_L == 4 */
@@ -236,7 +239,7 @@ static MLD_INLINE int mld_polyvecl_pointwise_acc_montgomery_l5_native(
236239 int32_t w [MLDSA_N ], const int32_t u [5 ][MLDSA_N ],
237240 const int32_t v [5 ][MLDSA_N ])
238241{
239- mld_polyvecl_pointwise_acc_montgomery_l5_asm (w , u , v );
242+ mld_polyvecl_pointwise_acc_montgomery_l5_aarch64_asm (w , u , v );
240243 return MLD_NATIVE_FUNC_SUCCESS ;
241244}
242245#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLDSA_L == 5 */
@@ -247,7 +250,7 @@ static MLD_INLINE int mld_polyvecl_pointwise_acc_montgomery_l7_native(
247250 int32_t w [MLDSA_N ], const int32_t u [7 ][MLDSA_N ],
248251 const int32_t v [7 ][MLDSA_N ])
249252{
250- mld_polyvecl_pointwise_acc_montgomery_l7_asm (w , u , v );
253+ mld_polyvecl_pointwise_acc_montgomery_l7_aarch64_asm (w , u , v );
251254 return MLD_NATIVE_FUNC_SUCCESS ;
252255}
253256#endif /* MLD_CONFIG_MULTILEVEL_WITH_SHARED || MLDSA_L == 7 */
0 commit comments