public class MLDSAParameters extends HashSignAdditionalContext
hashhedgeVariant, pContext| Constructor and Description |
|---|
MLDSAParameters(long hedgeVariant,
byte[] pContext)
Create a SignAdditionalContext object (CK_SIGN_ADDITIONAL_CONTEXT) with the given attributes.
|
MLDSAParameters(long hedgeVariant,
byte[] pContext,
long hash)
Create a HashSignAdditionalContext object (CK_HASH_SIGN_ADDITIONAL_CONTEXT) with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getPKCS11ParamsObject()
Get this parameters object as an object of the corresponding *_PARAMS class of the
iaik.pkcs.pkcs11.wrapper package.
|
clone, equals, hashCode, toStringpublic MLDSAParameters(long hedgeVariant,
byte[] pContext)
hedgeVariant - Indicates how hedge or deterministic signature variants should be handled.
Defaults to CKH_HEDGE_PREFERRED i.e. the token may create either a hedged
signature or a deterministic signature as specified in [FIPS 204].pContext - A NIST defined context string.CK_SIGN_ADDITIONAL_CONTEXT,
PKCS11Constants.CKH_HEDGE_PREFERRED,
PKCS11Constants.CKH_HEDGE_REQUIRED,
PKCS11Constants.CKH_DETERMINISTIC_REQUIREDpublic MLDSAParameters(long hedgeVariant,
byte[] pContext,
long hash)
hedgeVariant - Indicates how hedge or deterministic signature variants should be handled.
Defaults to CKH_HEDGE_PREFERRED i.e. the token may create either a hedged
signature or a deterministic signature as specified in [FIPS 204].pContext - A NIST defined context string.hash - The hashing mechanism that should be used.CK_HASH_SIGN_ADDITIONAL_CONTEXT,
PKCS11Constants.CKH_HEDGE_PREFERRED,
PKCS11Constants.CKH_HEDGE_REQUIRED,
PKCS11Constants.CKH_DETERMINISTIC_REQUIRED,
PKCS11Constants.CKM_HASH_ML_DSA_SHA224,
PKCS11Constants.CKM_HASH_ML_DSA_SHA256,
PKCS11Constants.CKM_HASH_ML_DSA_SHA384,
PKCS11Constants.CKM_HASH_ML_DSA_SHA512,
PKCS11Constants.CKM_HASH_ML_DSA_SHA3_224,
PKCS11Constants.CKM_HASH_ML_DSA_SHA3_256,
PKCS11Constants.CKM_HASH_ML_DSA_SHA3_384,
PKCS11Constants.CKM_HASH_ML_DSA_SHA3_512,
PKCS11Constants.CKM_HASH_ML_DSA_SHAKE128,
PKCS11Constants.CKM_HASH_ML_DSA_SHAKE256public java.lang.Object getPKCS11ParamsObject()
ParametersgetPKCS11ParamsObject in interface ParametersgetPKCS11ParamsObject in class HashSignAdditionalContext