@@ -765,6 +765,7 @@ int wc_dilithium_export_public(dilithium_key* key, byte* out, word32* outLen);
765765#ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
766766WOLFSSL_API
767767int wc_dilithium_export_private (dilithium_key * key , byte * out , word32 * outLen );
768+ #define wc_dilithium_export_private_only wc_dilithium_export_private
768769#endif
769770#ifdef WOLFSSL_DILITHIUM_PRIVATE_KEY
770771WOLFSSL_API
@@ -841,15 +842,15 @@ WOLFSSL_API int wc_Dilithium_PrivateKeyToDer(dilithium_key* key, byte* output,
841842#define wc_MlDsaKey_ExportPrivRaw (key , out , outLen ) \
842843 wc_dilithium_export_private_only(key, out, outLen)
843844#define wc_MlDsaKey_ImportPrivRaw (key , in , inLen ) \
844- wc_dilithium_import_private_only(out, outLen , key)
845+ wc_dilithium_import_private_only(in, inLen , key)
845846#define wc_MlDsaKey_Sign (key , sig , sigSz , msg , msgSz , rng ) \
846847 wc_dilithium_sign_msg(msg, msgSz, sig, sigSz, key, rng)
847848#define wc_MlDsaKey_Free (key ) \
848849 wc_dilithium_free(key)
849850#define wc_MlDsaKey_ExportPubRaw (key , out , outLen ) \
850851 wc_dilithium_export_public(key, out, outLen)
851852#define wc_MlDsaKey_ImportPubRaw (key , in , inLen ) \
852- wc_dilithium_import_public(out, outLen , key)
853+ wc_dilithium_import_public(in, inLen , key)
853854#define wc_MlDsaKey_Verify (key , sig , sigSz , msg , msgSz , res ) \
854855 wc_dilithium_verify_msg(sig, sigSz, msg, msgSz, res, key)
855856
0 commit comments