@@ -312,6 +312,22 @@ fn scan_cfg() -> Result<()> {
312312 println ! ( "cargo:rustc-cfg=rsa_const_api" ) ;
313313 }
314314
315+ /* dilithium / ML-DSA */
316+ check_cfg ( & binding, "wc_dilithium_init" , "dilithium" ) ;
317+ check_cfg ( & binding, "wc_dilithium_make_key" , "dilithium_make_key" ) ;
318+ check_cfg ( & binding, "wc_dilithium_make_key_from_seed" , "dilithium_make_key_from_seed" ) ;
319+ check_cfg ( & binding, "wc_dilithium_sign_msg" , "dilithium_sign" ) ;
320+ check_cfg ( & binding, "wc_dilithium_sign_msg_with_seed" , "dilithium_sign_with_seed" ) ;
321+ check_cfg ( & binding, "wc_dilithium_verify_msg" , "dilithium_verify" ) ;
322+ check_cfg ( & binding, "wc_dilithium_import_public" , "dilithium_import" ) ;
323+ check_cfg ( & binding, "wc_dilithium_export_public" , "dilithium_export" ) ;
324+ check_cfg ( & binding, "wc_dilithium_check_key" , "dilithium_check_key" ) ;
325+ check_cfg ( & binding, "DILITHIUM_LEVEL2_KEY_SIZE" , "dilithium_level2" ) ;
326+ check_cfg ( & binding, "DILITHIUM_LEVEL3_KEY_SIZE" , "dilithium_level3" ) ;
327+ check_cfg ( & binding, "DILITHIUM_LEVEL5_KEY_SIZE" , "dilithium_level5" ) ;
328+ check_cfg ( & binding, "DILITHIUM_SEED_SZ" , "dilithium_make_key_seed_sz" ) ;
329+ check_cfg ( & binding, "DILITHIUM_RND_SZ" , "dilithium_rnd_sz" ) ;
330+
315331 /* sha */
316332 check_cfg ( & binding, "wc_InitSha" , "sha" ) ;
317333 check_cfg ( & binding, "wc_InitSha224" , "sha224" ) ;
0 commit comments