Skip to content

Fixes for WolfSSL ML-DSA implementation#7677

Merged
SparkiDev merged 1 commit intowolfSSL:masterfrom
Laboratory-for-Safe-and-Secure-Systems:mldsa_fixes
Jun 24, 2024
Merged

Fixes for WolfSSL ML-DSA implementation#7677
SparkiDev merged 1 commit intowolfSSL:masterfrom
Laboratory-for-Safe-and-Secure-Systems:mldsa_fixes

Conversation

@Frauschi
Copy link
Copy Markdown
Contributor

Hi everybody,

After trying the new WolfSSL implementation of ML-DSA, I found some problems. On the one hand, interoperability has been lost to the OQS project due to different OIDs etc. (WolfSSL had ML-DSA implemented following the NIST draft, which is incompatible with the Round 3 version, but the OIDs have still been the Round 3 ones from OQS). Furthermore, private key files in PEM/DER format stored on disk typically contain both the private and the public key. The parsing code was unable to properly handle those keys, resulting in failing private key loading.

Both identified issues are fixed with the changes in this commit:

  • Update OIDs etc. to match OQS ML-DSA values (old ones were Dilithium Round 3 values)
  • Make sure private key files/buffers containing both the private and the public key are parsed correctly (adapt new code to the “old” behavior of the liboqs wrapper code).

Tested using in-house TLS client and server applications using WolfSSL and with OpenSSL s_client / s_server applications with OQS provider (current master branch), always using private key files generated by OQS.

* Update OIDs etc. to match OQS ML-DSA values (old ones were Dilithium
  Round 3 values)
* Make sure private key files/buffers containing both the private and
  the public key are parsed correctly

Signed-off-by: Tobias Frauenschläger
<tobias.frauenschlaeger@oth-regensburg.de>
@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Jun 24, 2024

Okay to test

@dgarske dgarske requested a review from anhu June 24, 2024 18:20
@dgarske
Copy link
Copy Markdown
Member

dgarske commented Jun 24, 2024

Retest this please

@dgarske
Copy link
Copy Markdown
Member

dgarske commented Jun 24, 2024

Contributor agreement on file. Okay to merge.

@SparkiDev SparkiDev removed the request for review from anhu June 24, 2024 23:12
@SparkiDev SparkiDev merged commit 5793f62 into wolfSSL:master Jun 24, 2024
@Frauschi Frauschi deleted the mldsa_fixes branch June 25, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants