Package org.bouncycastle.pqc.asn1
Class XMSSMTPrivateKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.pqc.asn1.XMSSMTPrivateKey
- All Implemented Interfaces:
ASN1Encodable,Encodable
XMMSMTPrivateKey
XMMSMTPrivateKey ::= SEQUENCE {
version INTEGER -- 0, or 1 if maxIndex is present
keyData SEQUENCE {
index INTEGER
secretKeySeed OCTET STRING
secretKeyPRF OCTET STRING
publicSeed OCTET STRING
root OCTET STRING
maxIndex [0] INTEGER OPTIONAL
}
bdsState CHOICE {
platformSerialization [0] OCTET STRING
} OPTIONAL
}
-
Constructor Summary
ConstructorsConstructorDescriptionXMSSMTPrivateKey(long index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState) XMSSMTPrivateKey(long index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState, long maxIndex) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]longgetIndex()static XMSSMTPrivateKeylongbyte[]byte[]getRoot()byte[]byte[]intMethod providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
XMSSMTPrivateKey
public XMSSMTPrivateKey(long index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState) -
XMSSMTPrivateKey
public XMSSMTPrivateKey(long index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState, long maxIndex)
-
-
Method Details
-
getInstance
-
getVersion
public int getVersion() -
getIndex
public long getIndex() -
getMaxIndex
public long getMaxIndex() -
getSecretKeySeed
public byte[] getSecretKeySeed() -
getSecretKeyPRF
public byte[] getSecretKeyPRF() -
getPublicSeed
public byte[] getPublicSeed() -
getRoot
public byte[] getRoot() -
getBdsState
public byte[] getBdsState() -
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-