ckslhdsa

ckslhdsa [-p PIN] [-s SLOT] [-c CONTEXT-STRING] [ template options ] [ hedge variant selection ]

Tests SLHDSA key generation and use.

Option Description

-p, --pin-for-testing=PIN

Use PIN for C_Login

Exposes PIN, use for testing only.

-s, --slot-name=SLOT

Use only named SLOT.

-c, --context-string=CONTEXT-STRING

Set CONTEXT-STRING (default is empty string).

Template options

-L, --label=LABEL

Set CKA_LABEL (default "Example label SLHDSA").

-P, --parameter-set=PARAMETER-SET

Set CKA_PARAMETER_SET. Valid values are:

  • CKP_SLH_DSA_SHA2_128S (default)

  • CKP_SLH_DSA_SHAKE_128S

  • CKP_SLH_DSA_SHA2_128F

  • CKP_SLH_DSA_SHAKE_128F

  • CKP_SLH_DSA_SHA2_192S

  • CKP_SLH_DSA_SHAKE_192S

  • CKP_SLH_DSA_SHA2_192F

  • CKP_SLH_DSA_SHAKE_192F

  • CKP_SLH_DSA_SHA2_256S

  • CKP_SLH_DSA_SHAKE_256S

  • CKP_SLH_DSA_SHA2_256F

  • CKP_SLH_DSA_SHAKE_256F

Mechanism selection

-m, --mechanism=SLHDSA-MECHANISM

  • CKM_SLH_DSA (default)

  • CKM_HASH_SLH_DSA

  • CKM_HASH_SLH_DSA_SHA256

  • CKM_HASH_SLH_DSA_SHA512

  • CKM_HASH_SLH_DSA_SHAKE128

  • CKM_HASH_SLH_DSA_SHAKE256

-H, --prehash-mechanism=PREHASH-MECH

Hash mechanism for use when prehashing. Valid values are:

  • CKM_HASH_SLH_DSA_SHA256 (default)

  • CKM_HASH_SLH_DSA_SHA512

Hedge variant selection (default hedge-preferred)

  • --hedge-preferred

  • --hedge-required

  • --deterministic-required

  • CKH_HEDGE_PREFERRED

  • CKH_HEDGE_REQUIRED

  • CKH_DETERMINISTIC_REQUIRED

Help options

-h, --help

Display help for ckslhdsa.

-V, --version

Display the version number of ckslhdsa.

-u, --usage

Display a brief usage summary for ckslhdsa.