public class SettingsMLDSAAlgorithmParameterSpec extends Object implements AlgorithmParameterSpec
Use useRandomizedSigning(boolean)
to switch between randomized and deterministic signing
Use setContext(byte[])
to set the context used for the sign/verify operation
Constructor and Description |
---|
SettingsMLDSAAlgorithmParameterSpec() |
SettingsMLDSAAlgorithmParameterSpec(boolean randomizedSigning) |
SettingsMLDSAAlgorithmParameterSpec(byte[] context) |
SettingsMLDSAAlgorithmParameterSpec(byte[] context,
boolean randomizedSigning) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContext()
Getter for the currently set context.
|
boolean |
isRandomizedSigning() |
void |
setContext(byte[] ctx)
Sets the context to be used while signing
|
void |
useRandomizedSigning(boolean randomizedSigning)
Changes if the Signature should be deterministic or randomized.
|
public SettingsMLDSAAlgorithmParameterSpec()
public SettingsMLDSAAlgorithmParameterSpec(byte[] context)
public SettingsMLDSAAlgorithmParameterSpec(boolean randomizedSigning)
public SettingsMLDSAAlgorithmParameterSpec(byte[] context, boolean randomizedSigning)
public void setContext(byte[] ctx) throws PQException
ctx
- byte[] with a maximum of 255 bytesPQException
public byte[] getContext()
public void useRandomizedSigning(boolean randomizedSigning)
public boolean isRandomizedSigning()
Copyright © 2020–2024 Stiftung SIC. All rights reserved.