Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/development/custom-vectors/mldsa.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ML-DSA vector creation
======================

This page documents the ML-DSA test vectors. These vectors are used to verify:

* Unsupported ML-DSA variants (i.e. variants other than ML-DSA-65) are
correctly rejected when loading keys.
* ML-DSA-65 private keys without a seed are correctly rejected.

ML-DSA-44 public key
--------------------

The public key was derived from the private key using the OpenSSL CLI
(requires OpenSSL 3.5+):

.. code-block:: console

$ openssl pkey -in mldsa44_priv.der -inform DER -pubout -outform DER -out mldsa44_pub.der
4 changes: 4 additions & 0 deletions docs/development/test-vectors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Asymmetric ciphers
* ``asymmetric/PKCS8/ed25519-scrypt.pem`` a PKCS8 encoded Ed25519 key from
RustCrypto using scrypt as the KDF. The password is ``hunter42``.
* FIPS 204 ML-DSA-{44,65,87} KAT vectors from `post-quantum-cryptography/KAT`_.
* ML-DSA-44 PKCS#8 and SPKI DER test vectors generated by this project.
See :doc:`/development/custom-vectors/mldsa`

Custom asymmetric vectors
~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -74,6 +76,7 @@ Custom asymmetric vectors

custom-vectors/secp256k1
custom-vectors/rsa-oaep-sha2
custom-vectors/mldsa

* ``asymmetric/PEM_Serialization/ec_private_key.pem`` and
``asymmetric/DER_Serialization/ec_private_key.der`` - Contains an Elliptic
Expand Down Expand Up @@ -1216,6 +1219,7 @@ Created Vectors
custom-vectors/idea
custom-vectors/seed
custom-vectors/hkdf
custom-vectors/mldsa
custom-vectors/rc2


Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading