Skip to content

Add other MLDSA test vectors#14470

Open
DarkaMaul wants to merge 2 commits intopyca:mainfrom
trail-of-forks:dm/mldsa-vectors
Open

Add other MLDSA test vectors#14470
DarkaMaul wants to merge 2 commits intopyca:mainfrom
trail-of-forks:dm/mldsa-vectors

Conversation

@DarkaMaul
Copy link
Contributor

For testing certain codepaths for unsupported key sizes and key serialization, we need some extra vectors.

Extracted from #14404 per @alex's comment.

encrypted with ``pbeWithSHA1And128BitRC4``. The password is ``password``.
* ``asymmetric/PKCS8/enc-rsa-pkcs8-pbkdf2-0iter.pem`` a PKCS8 encoded
structure with an invalid PBKDF2 iteration count (zero).
* ``asymmetric/MLDSA/mldsa44_pub.der`` and ``asymmetric/MLDSA/mldsa44_priv.der``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mldsa44_priv.der appears to contain both seed and pub/priv so this is the OpenSSL "kitchen sink" format I think?

structure with an invalid PBKDF2 iteration count (zero).
* ``asymmetric/MLDSA/mldsa44_pub.der`` and ``asymmetric/MLDSA/mldsa44_priv.der``
a PKCS8 encoded key pair for ML-DSA-44 generated by OpenSSL.
* ``asymmetric/MLDSA/mldsa65_noseed_priv.der`` a PKCS8 encoded ML-DSA-65 private
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to have serialized nothing:

SEQUENCE {
  INTEGER { 0 }
  SEQUENCE {
    # ml-dsa-65
    OBJECT_IDENTIFIER { 2.16.840.1.101.3.4.3.18 }
  }
  OCTET_STRING {
    SEQUENCE {}
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants