public class BCXMSSPrivateKey extends Object implements PrivateKey, XMSSPrivateKey
Constructor and Description |
---|
BCXMSSPrivateKey(ASN1ObjectIdentifier treeDigest,
XMSSPrivateKeyParameters keyParams) |
BCXMSSPrivateKey(PrivateKeyInfo keyInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
XMSSPrivateKey |
extractKeyShard(int usageCount)
Return a key representing a shard of the key space that can be used usageCount times.
|
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
int |
getHeight() |
long |
getIndex()
Return the index of the next signature.
|
String |
getTreeDigest() |
long |
getUsagesRemaining()
Return the number of usages left for the private key.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed
public BCXMSSPrivateKey(ASN1ObjectIdentifier treeDigest, XMSSPrivateKeyParameters keyParams)
public BCXMSSPrivateKey(PrivateKeyInfo keyInfo) throws IOException
IOException
public long getIndex()
XMSSPrivateKey
getIndex
in interface XMSSPrivateKey
public long getUsagesRemaining()
XMSSPrivateKey
getUsagesRemaining
in interface XMSSPrivateKey
public XMSSPrivateKey extractKeyShard(int usageCount)
XMSSPrivateKey
Note: this will use the range [index...index + usageCount) for the current key.
extractKeyShard
in interface XMSSPrivateKey
usageCount
- the number of usages the key should have.public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
public String getTreeDigest()
getTreeDigest
in interface XMSSKey
Copyright © 2021 BouncyCastle.org. All rights reserved.