public class BCLMSPrivateKey extends Object implements PrivateKey, LMSPrivateKey
Constructor and Description |
---|
BCLMSPrivateKey(LMSKeyParameters keyParams) |
BCLMSPrivateKey(PrivateKeyInfo keyInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
LMSPrivateKey |
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() |
long |
getIndex()
Return the index of the next signature.
|
int |
getLevels()
Return the number of levels (L) associated with the key.
|
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 BCLMSPrivateKey(LMSKeyParameters keyParams)
public BCLMSPrivateKey(PrivateKeyInfo keyInfo) throws IOException
IOException
public long getIndex()
LMSPrivateKey
getIndex
in interface LMSPrivateKey
public long getUsagesRemaining()
LMSPrivateKey
getUsagesRemaining
in interface LMSPrivateKey
public LMSPrivateKey extractKeyShard(int usageCount)
LMSPrivateKey
Note: this will use the range [index...index + usageCount) for the current key.
extractKeyShard
in interface LMSPrivateKey
usageCount
- the number of usages the key should have.public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
Copyright © 2021 BouncyCastle.org. All rights reserved.