@@ -91,7 +91,8 @@ int public_key_verify_signature_sphincs(
9191 goto out ;
9292 }
9393
94- printf_debug ("SLH-DSA signature verification of authenticated attributes\n" );
94+ printf_debug (
95+ "SLH-DSA signature verification of authenticated attributes\n" );
9596
9697 /*
9798 * SLH-DSA init/update/final operates like a pre-hash variant
@@ -100,11 +101,12 @@ int public_key_verify_signature_sphincs(
100101 */
101102 aa [0 ] = lc_pkcs7_authattr_tag ;
102103 memcpy (aa + 1 , sig -> authattrs , sig -> authattrs_size );
103- CKINT (lc_sphincs_verify_ctx (& ws -> sphincs_sig , ctx ,
104- aa , sig -> authattrs_size + 1 ,
104+ CKINT (lc_sphincs_verify_ctx (& ws -> sphincs_sig , ctx , aa ,
105+ sig -> authattrs_size + 1 ,
105106 & ws -> sphincs_pk ));
106107 } else if (sig -> digest_size ) {
107- printf_debug ("SLH-DSA signature verification of pre-hashed data\n" );
108+ printf_debug (
109+ "SLH-DSA signature verification of pre-hashed data\n" );
108110
109111 CKINT (public_key_set_prehash_sphincs (sig , ctx ));
110112
@@ -160,7 +162,8 @@ int public_key_generate_signature_sphincs(
160162 * Select the data to be signed
161163 */
162164 if (sig -> authattrs ) {
163- printf_debug ("SLH-DSA signature generation of authenticated attributes\n" );
165+ printf_debug (
166+ "SLH-DSA signature generation of authenticated attributes\n" );
164167
165168 /*
166169 * Sign the authenticated attributes data
@@ -169,7 +172,8 @@ int public_key_generate_signature_sphincs(
169172 sig -> authattrs_size , sphincs_sk ,
170173 lc_seeded_rng ));
171174 } else if (sig -> digest_size ) {
172- printf_debug ("SLH-DSA signature generation of pre-hashed data\n" );
175+ printf_debug (
176+ "SLH-DSA signature generation of pre-hashed data\n" );
173177
174178 CKINT (public_key_set_prehash_sphincs (sig , ctx ));
175179
@@ -341,8 +345,8 @@ int asym_set_sphincs_keypair(struct lc_x509_key_data *gen_data,
341345}
342346
343347int asym_keypair_gen_sphincs (struct lc_x509_certificate * cert ,
344- struct lc_x509_key_data * keys ,
345- enum lc_sphincs_type sphincs_key_type )
348+ struct lc_x509_key_data * keys ,
349+ enum lc_sphincs_type sphincs_key_type )
346350{
347351 int ret ;
348352
0 commit comments