| Modifier and Type | Field and Description |
|---|---|
| private Digest | |
| private byte[] | |
| private SLHDSAPrivateKeyParameters | |
| private SLHDSAPublicKeyParameters | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Digest | |
| public byte[] | generateSignature()
Implements org. generate a signature for the message we've been loaded with using the key we were initialised with. |
| public void | init(boolean
true if for signing, false otherwise forSigning, CipherParameters necessary parameters. param)Implements org. Initialise the signer for signing or verification. |
| private void | |
| protected byte[] | |
| private static byte[] | internalGenerateSignature(SLHDSAPrivateKeyParameters privKey, byte[] msgPrefix, byte[] msg, byte[] optRand)
|
| protected boolean | |
| private static boolean | internalVerifySignature(SLHDSAPublicKeyParameters pubKey, byte[] msgPrefix, byte[] msg, byte[] signature)
|
| public void | |
| public void | update(byte b)
Implements org. update the internal digest with the byte b |
| public void | update(byte[] in, int off, int len)
Implements org. update the internal digest with the byte array in |
| public boolean | verifySignature(byte[] signature)
Implements org. return true if the internal state represents the signature described in the passed in array. |
| digest | back to summary |
|---|---|
| private Digest digest | |
| msgPrefix | back to summary |
|---|---|
| private byte[] msgPrefix | |
| privKey | back to summary |
|---|---|
| private SLHDSAPrivateKeyParameters privKey | |
| pubKey | back to summary |
|---|---|
| private SLHDSAPublicKeyParameters pubKey | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| HashSLHDSASigner | back to summary |
|---|---|
| public HashSLHDSASigner() | |
| createDigest | back to summary |
|---|---|
| private static Digest createDigest(SLHDSAParameters parameters) | |
| generateSignature | back to summary |
|---|---|
| public byte[] generateSignature() throws CryptoException, DataLengthException Implements org. Doc from org. generate a signature for the message we've been loaded with using the key we were initialised with. | |
| init | back to summary |
|---|---|
| public void init(boolean forSigning, CipherParameters param) Implements org. Doc from org. Initialise the signer for signing or verification.
| |
| initDigest | back to summary |
|---|---|
| private void initDigest(SLHDSAParameters parameters, ParametersWithContext withContext) | |
| internalGenerateSignature | back to summary |
|---|---|
| protected byte[] internalGenerateSignature(byte[] message, byte[] optRand) | |
| internalGenerateSignature | back to summary |
|---|---|
| private static byte[] internalGenerateSignature(SLHDSAPrivateKeyParameters privKey, byte[] msgPrefix, byte[] msg, byte[] optRand) | |
| internalVerifySignature | back to summary |
|---|---|
| protected boolean internalVerifySignature(byte[] message, byte[] signature) | |
| internalVerifySignature | back to summary |
|---|---|
| private static boolean internalVerifySignature(SLHDSAPublicKeyParameters pubKey, byte[] msgPrefix, byte[] msg, byte[] signature) | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. reset the internal state | |
| update | back to summary |
|---|---|
| public void update(byte b) Implements org. Doc from org. update the internal digest with the byte b | |
| update | back to summary |
|---|---|
| public void update(byte[] in, int off, int len) Implements org. Doc from org. update the internal digest with the byte array in | |
| verifySignature | back to summary |
|---|---|
| public boolean verifySignature(byte[] signature) Implements org. Doc from org. return true if the internal state represents the signature described in the passed in array. | |