Class XMSS
java.lang.Object
org.bouncycastle.pqc.crypto.xmss.XMSS
-
Constructor Summary
ConstructorsConstructorDescriptionXMSS(XMSSParameters params, SecureRandom prng) Deprecated.XMSS constructor... -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Export XMSS private key.Deprecated.Export XMSS public key.voidDeprecated.Generate a new XMSS private key / public key pair.intgetIndex()Deprecated.Getter XMSS index.Deprecated.Getter XMSS params.Deprecated.byte[]Deprecated.Getter XMSS public seed.byte[]getRoot()Deprecated.Getter XMSS root.protected org.bouncycastle.pqc.crypto.xmss.WOTSPlusDeprecated.Getter WOTS+.voidimportState(byte[] privateKey, byte[] publicKey) Deprecated.Import XMSS private key / public key pair.voidimportState(XMSSPrivateKeyParameters privateKey, XMSSPublicKeyParameters publicKey) Deprecated.protected voidsetIndex(int index) Deprecated.protected voidsetPublicSeed(byte[] publicSeed) Deprecated.protected voidsetRoot(byte[] root) Deprecated.byte[]sign(byte[] message) Deprecated.Sign message.booleanverifySignature(byte[] message, byte[] signature, byte[] publicKey) Deprecated.Verify an XMSS signature.protected org.bouncycastle.pqc.crypto.xmss.WOTSPlusSignaturewotsSign(byte[] messageDigest, org.bouncycastle.pqc.crypto.xmss.OTSHashAddress otsHashAddress) Deprecated.Generate a WOTS+ signature on a message without the corresponding authentication path
-
Constructor Details
-
XMSS
Deprecated.XMSS constructor...- Parameters:
params- XMSSParameters.
-
-
Method Details
-
generateKeys
public void generateKeys()Deprecated.Generate a new XMSS private key / public key pair. -
importState
Deprecated. -
importState
public void importState(byte[] privateKey, byte[] publicKey) Deprecated.Import XMSS private key / public key pair.- Parameters:
privateKey- XMSS private key.publicKey- XMSS public key.
-
sign
public byte[] sign(byte[] message) Deprecated.Sign message.- Parameters:
message- Message to sign.- Returns:
- XMSS signature on digest of message.
-
verifySignature
public boolean verifySignature(byte[] message, byte[] signature, byte[] publicKey) throws ParseException Deprecated.Verify an XMSS signature.- Parameters:
message- Message.signature- XMSS signature.publicKey- XMSS public key.- Returns:
- true if signature is valid false else.
- Throws:
ParseException
-
exportPrivateKey
Deprecated.Export XMSS private key.- Returns:
- XMSS private key.
-
exportPublicKey
Deprecated.Export XMSS public key.- Returns:
- XMSS public key.
-
wotsSign
protected org.bouncycastle.pqc.crypto.xmss.WOTSPlusSignature wotsSign(byte[] messageDigest, org.bouncycastle.pqc.crypto.xmss.OTSHashAddress otsHashAddress) Deprecated.Generate a WOTS+ signature on a message without the corresponding authentication path- Parameters:
messageDigest- Message digest of length n.otsHashAddress- OTS hash address.- Returns:
- XMSS signature.
-
getParams
-
getWOTSPlus
protected org.bouncycastle.pqc.crypto.xmss.WOTSPlus getWOTSPlus()Deprecated.Getter WOTS+.- Returns:
- WOTS+ instance.
-
getRoot
public byte[] getRoot()Deprecated.Getter XMSS root.- Returns:
- Root of binary tree.
-
setRoot
protected void setRoot(byte[] root) Deprecated. -
getIndex
public int getIndex()Deprecated.Getter XMSS index.- Returns:
- Index.
-
setIndex
protected void setIndex(int index) Deprecated. -
getPublicSeed
public byte[] getPublicSeed()Deprecated.Getter XMSS public seed.- Returns:
- Public seed.
-
setPublicSeed
protected void setPublicSeed(byte[] publicSeed) Deprecated. -
getPrivateKey
Deprecated.
-
XMSSSigner/XMSSKeyPairGeneratorand the org.bouncycastle.crypto.params key classes instead; the engine operations those are built on are on org.bouncycastle.crypto.signers.xmss.XMSSEngine.