Skip to content

Single part sign for SLHDSA #760

Description

@hsmguy

hi team!
Great job on the SLHDSA code.

I see this in slhdsa.c

DISPATCH_SLHDSA_FN(sign_init);
DISPATCH_SLHDSA_FN(sign);
DISPATCH_SLHDSA_FN(verify_init);
DISPATCH_SLHDSA_FN(verify);

So are you implementing single part signing?

I am showing its calling multipart signing only when doing

openssl pkeyutl command line calls

(i pulled from master)

2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC >> C_SignInit
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC > hSession 0x000008CC
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC > pMechanism->mechanism 0x0000002E (CKM_SLH_DSA)
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC > hKey 0x00000460
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 00000000 D NFC__CheckMechanismAllowedGetInfo type 0x0000002E (CKM_SLH_DSA)
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 00000000 D NFC__GetMechanismInfoEx type 0x0000002E (CKM_SLH_DSA)
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC D NFC__SignInitVerifyPublic ok
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC < rv 0x00000000 (CKR_OK)
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC >> NFC_SignUpdate
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC > ulPartLen 12
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC Error: Mechanism is single part only
2026-08-05 20:14:13 [966352] t40674e785a7f0000: pkcs11: 000008CC < rv 0x00000070 (CKR_MECHANISM_INVALID)

sooo if your intention was to do single part signing in this release, there may still be an issue?

many thanks for all the work on SLHDSA :-) great feature !!! cheers!

P.S:

for MLDSA sing part sign, I tested on ncipher N5c rack mount hsm and it works good :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions