Top Description Fields Constructors Methods
org.bouncycastle.pqc.asn1

public Class XMSSPrivateKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence, .DERTaggedObject, org.bouncycastle.util.Arrays

XMMSPrivateKey
    XMMSPrivateKey ::= 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
   }

Field Summary

Modifier and TypeField and Description
private final byte[]
private final int
private final int
private final byte[]
private final byte[]
private final byte[]
private final byte[]
private final int

Constructor Summary

AccessConstructor and Description
public
XMSSPrivateKey(int index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState)

public
XMSSPrivateKey(int index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState, int maxIndex)

private

Method Summary

Modifier and TypeMethod and Description
public byte[]
public int
public static XMSSPrivateKey
public int
public byte[]
public byte[]
public byte[]
public byte[]
public int
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

bdsStateback to summary
private final byte[] bdsState
indexback to summary
private final int index
maxIndexback to summary
private final int maxIndex
publicSeedback to summary
private final byte[] publicSeed
rootback to summary
private final byte[] root
secretKeyPRFback to summary
private final byte[] secretKeyPRF
secretKeySeedback to summary
private final byte[] secretKeySeed
versionback to summary
private final int version

Constructor Detail

XMSSPrivateKeyback to summary
public XMSSPrivateKey(int index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState)
XMSSPrivateKeyback to summary
public XMSSPrivateKey(int index, byte[] secretKeySeed, byte[] secretKeyPRF, byte[] publicSeed, byte[] root, byte[] bdsState, int maxIndex)
XMSSPrivateKeyback to summary
private XMSSPrivateKey(ASN1Sequence seq)

Method Detail

getBdsStateback to summary
public byte[] getBdsState()
getIndexback to summary
public int getIndex()
getInstanceback to summary
public static XMSSPrivateKey getInstance(Object o)
getMaxIndexback to summary
public int getMaxIndex()
getPublicSeedback to summary
public byte[] getPublicSeed()
getRootback to summary
public byte[] getRoot()
getSecretKeyPRFback to summary
public byte[] getSecretKeyPRF()
getSecretKeySeedback to summary
public byte[] getSecretKeySeed()
getVersionback to summary
public int getVersion()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.