| Modifier and Type | Field and Description |
|---|---|
| private long | |
| private final long | |
| private final boolean | |
| private List | |
| private final int | |
| private HSSPublicKeyParameters | |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HSSPrivateKeyParameters(int l, List<LMSPrivateKeyParameters> keys, List<LMSSignature> sig, long index, long indexLimit)
|
| private | HSSPrivateKeyParameters(int l, List<LMSPrivateKeyParameters> keys, List<LMSSignature> sig, long index, long indexLimit, boolean isShard)
|
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public HSSPrivateKeyParameters | Returns: a key based on the current key that can be used usageCount times.the number of usages the key should have. usageCount)Return a key that can be used usageCount times. |
| public LMSContext | |
| public byte[] | |
| public synchronized byte[] | getEncoded()
Implements abstract org. Implements org. Return a byte array representing the implementing object. |
| public synchronized long | |
| pack-priv long | |
| public static HSSPrivateKeyParameters | |
| public static HSSPrivateKeyParameters | |
| pack-priv synchronized List | |
| public int | |
| public synchronized LMSParameters[] | |
| public synchronized HSSPublicKeyParameters | |
| pack-priv LMSPrivateKeyParameters | |
| pack-priv synchronized List | |
| public long | |
| public int | |
| pack-priv synchronized void | |
| pack-priv boolean | |
| private static HSSPrivateKeyParameters | |
| pack-priv void | |
| pack-priv void | resetKeyToIndex()
Reset to index will ensure that all LMS keys are correct for a given HSS index value. |
| protected void |
| index | back to summary |
|---|---|
| private long index | |
| indexLimit | back to summary |
|---|---|
| private final long indexLimit | |
| isShard | back to summary |
|---|---|
| private final boolean isShard | |
| keys | back to summary |
|---|---|
| private List<LMSPrivateKeyParameters> keys | |
| l | back to summary |
|---|---|
| private final int l | |
| publicKey | back to summary |
|---|---|
| private HSSPublicKeyParameters publicKey | |
| sig | back to summary |
|---|---|
| private List<LMSSignature> sig | |
| HSSPrivateKeyParameters | back to summary |
|---|---|
| public HSSPrivateKeyParameters(LMSPrivateKeyParameters key, long index, long indexLimit) | |
| HSSPrivateKeyParameters | back to summary |
|---|---|
| public HSSPrivateKeyParameters(int l, List<LMSPrivateKeyParameters> keys, List<LMSSignature> sig, long index, long indexLimit) | |
| HSSPrivateKeyParameters | back to summary |
|---|---|
| private HSSPrivateKeyParameters(int l, List<LMSPrivateKeyParameters> keys, List<LMSSignature> sig, long index, long indexLimit, boolean isShard) | |
| clone | back to summary |
|---|---|
| protected Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| extractKeyShard | back to summary |
|---|---|
| public HSSPrivateKeyParameters extractKeyShard(int usageCount) Return a key that can be used usageCount times. Note this will use the range [index...index + usageCount) for the current key.
| |
| generateLMSContext | back to summary |
|---|---|
| public LMSContext generateLMSContext() Implements org. | |
| generateSignature | back to summary |
|---|---|
| public byte[] generateSignature(LMSContext context) Implements org. | |
| getEncoded | back to summary |
|---|---|
| public synchronized byte[] getEncoded() throws IOException Implements abstract org. Implements org. Doc from org. Return a byte array representing the implementing object.
| |
| getIndex | back to summary |
|---|---|
| public synchronized long getIndex() | |
| getIndexLimit | back to summary |
|---|---|
| pack-priv long getIndexLimit() | |
| getInstance | back to summary |
|---|---|
| public static HSSPrivateKeyParameters getInstance(byte[] privEnc, byte[] pubEnc) throws IOException | |
| getInstance | back to summary |
|---|---|
| public static HSSPrivateKeyParameters getInstance(Object src) throws IOException | |
| getKeys | back to summary |
|---|---|
| pack-priv synchronized List | |
| getL | back to summary |
|---|---|
| public int getL() | |
| getLMSParameters | back to summary |
|---|---|
| public synchronized LMSParameters[] getLMSParameters() | |
| getPublicKey | back to summary |
|---|---|
| public synchronized HSSPublicKeyParameters getPublicKey() | |
| getRootKey | back to summary |
|---|---|
| pack-priv LMSPrivateKeyParameters getRootKey() | |
| getSig | back to summary |
|---|---|
| pack-priv synchronized List | |
| getUsagesRemaining | back to summary |
|---|---|
| public long getUsagesRemaining() Implements org. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| incIndex | back to summary |
|---|---|
| pack-priv synchronized void incIndex() | |
| isShard | back to summary |
|---|---|
| pack-priv boolean isShard() | |
| makeCopy | back to summary |
|---|---|
| private static HSSPrivateKeyParameters makeCopy(HSSPrivateKeyParameters privateKeyParameters) | |
| replaceConsumedKey | back to summary |
|---|---|
| pack-priv void replaceConsumedKey(int d) | |
| resetKeyToIndex | back to summary |
|---|---|
| pack-priv void resetKeyToIndex() Reset to index will ensure that all LMS keys are correct for a given HSS index value. Normally LMS keys updated in sync with their parent HSS key but in cases of sharding the normal monotonic updating does not apply and the state of the LMS keys needs to be reset to match the current HSS index. | |
| updateHierarchy | back to summary |
|---|---|
| protected void updateHierarchy(LMSPrivateKeyParameters[] newKeys, LMSSignature[] newSig) | |