Top Fields Constructors Methods
org.bouncycastle.pqc.asn1

public Class GMSSPrivateKey

extends ASN1Object
Class Inheritance
Imports
java.util.Vector, org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.pqc.legacy.crypto.gmss.GMSSLeaf, .GMSSParameters, .GMSSRootCalc, .GMSSRootSig, .Treehash

Field Summary

Modifier and TypeField and Description
private ASN1Primitive

Constructor Summary

AccessConstructor and Description
private
public
GMSSPrivateKey(int[] index, byte[][] currentSeed, byte[][] nextNextSeed, byte[][][] currentAuthPath, byte[][][] nextAuthPath, Treehash[][] currentTreehash, Treehash[][] nextTreehash, Vector<E>[] currentStack, Vector<E>[] nextStack, Vector<E>[][] currentRetain, Vector<E>[][] nextRetain, byte[][][] keep, GMSSLeaf[] nextNextLeaf, GMSSLeaf[] upperLeaf, GMSSLeaf[] upperTreehashLeaf, int[] minTreehash, byte[][] nextRoot, GMSSRootCalc[] nextNextRoot, byte[][] currentRootSig, GMSSRootSig[] nextRootSig, GMSSParameters gmssParameterset, AlgorithmIdentifier digestAlg)

Method Summary

Modifier and TypeMethod and Description
private static int
private ASN1Primitive
encode(int[]
tree indices
index
,
byte[][]
seed for the generation of private OTS keys for the current subtrees (TREE)
currentSeeds
,
byte[][]
seed for the generation of private OTS keys for the subtrees after next (TREE++)
nextNextSeeds
,
byte[][][]
array of current authentication paths (AUTHPATH)
currentAuthPaths
,
byte[][][]
array of next authentication paths (AUTHPATH+)
nextAuthPaths
,
byte[][][]
keep array for the authPath algorithm
keep
,
Treehash[][]
treehash for authPath algorithm of current tree
currentTreehash
,
Treehash[][]
treehash for authPath algorithm of next tree (TREE+)
nextTreehash
,
Vector<E>[]
shared stack for authPath algorithm of current tree
currentStack
,
Vector<E>[]
shared stack for authPath algorithm of next tree (TREE+)
nextStack
,
Vector<E>[][]
retain stack for authPath algorithm of current tree
currentRetain
,
Vector<E>[][]
retain stack for authPath algorithm of next tree (TREE+)
nextRetain
,
GMSSLeaf[]
array of upcoming leafs of the tree after next (LEAF++) of each layer
nextNextLeaf
,
GMSSLeaf[]
needed for precomputation of upper nodes
upperLeaf
,
GMSSLeaf[]
needed for precomputation of upper treehash nodes
upperTreehashLeaf
,
int[]
index of next treehash instance to receive an update
minTreehash
,
byte[][]
the roots of the next trees (ROOT+)
nextRoot
,
GMSSRootCalc[]
the roots of the tree after next (ROOT++)
nextNextRoot
,
byte[][]
array of signatures of the roots of the current subtrees (SIG)
currentRootSig
,
GMSSRootSig[]
array of signatures of the roots of the next subtree (SIG+)
nextRootSig
,
GMSSParameters
the GMSS Parameterset
gmssParameterset
,
AlgorithmIdentifier[]
An array of algorithm identifiers, containing the hash function details
algorithms
)

public static GMSSPrivateKey
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

primitiveback to summary
private ASN1Primitive primitive

Constructor Detail

GMSSPrivateKeyback to summary
private GMSSPrivateKey(ASN1Sequence mtsPrivateKey)
GMSSPrivateKeyback to summary
public GMSSPrivateKey(int[] index, byte[][] currentSeed, byte[][] nextNextSeed, byte[][][] currentAuthPath, byte[][][] nextAuthPath, Treehash[][] currentTreehash, Treehash[][] nextTreehash, Vector<E>[] currentStack, Vector<E>[] nextStack, Vector<E>[][] currentRetain, Vector<E>[][] nextRetain, byte[][][] keep, GMSSLeaf[] nextNextLeaf, GMSSLeaf[] upperLeaf, GMSSLeaf[] upperTreehashLeaf, int[] minTreehash, byte[][] nextRoot, GMSSRootCalc[] nextNextRoot, byte[][] currentRootSig, GMSSRootSig[] nextRootSig, GMSSParameters gmssParameterset, AlgorithmIdentifier digestAlg)

Method Detail

checkBigIntegerInIntRangeback to summary
private static int checkBigIntegerInIntRange(ASN1Encodable a)
encodeback to summary
private ASN1Primitive encode(int[] index, byte[][] currentSeeds, byte[][] nextNextSeeds, byte[][][] currentAuthPaths, byte[][][] nextAuthPaths, byte[][][] keep, Treehash[][] currentTreehash, Treehash[][] nextTreehash, Vector<E>[] currentStack, Vector<E>[] nextStack, Vector<E>[][] currentRetain, Vector<E>[][] nextRetain, GMSSLeaf[] nextNextLeaf, GMSSLeaf[] upperLeaf, GMSSLeaf[] upperTreehashLeaf, int[] minTreehash, byte[][] nextRoot, GMSSRootCalc[] nextNextRoot, byte[][] currentRootSig, GMSSRootSig[] nextRootSig, GMSSParameters gmssParameterset, AlgorithmIdentifier[] algorithms)
Parameters
index:int[]

tree indices

currentSeeds:byte[][]

seed for the generation of private OTS keys for the current subtrees (TREE)

nextNextSeeds:byte[][]

seed for the generation of private OTS keys for the subtrees after next (TREE++)

currentAuthPaths:byte[][][]

array of current authentication paths (AUTHPATH)

nextAuthPaths:byte[][][]

array of next authentication paths (AUTHPATH+)

keep:byte[][][]

keep array for the authPath algorithm

currentTreehash:Treehash[][]

treehash for authPath algorithm of current tree

nextTreehash:Treehash[][]

treehash for authPath algorithm of next tree (TREE+)

currentStack:Vector<E>[]

shared stack for authPath algorithm of current tree

nextStack:Vector<E>[]

shared stack for authPath algorithm of next tree (TREE+)

currentRetain:Vector<E>[][]

retain stack for authPath algorithm of current tree

nextRetain:Vector<E>[][]

retain stack for authPath algorithm of next tree (TREE+)

nextNextLeaf:GMSSLeaf[]

array of upcoming leafs of the tree after next (LEAF++) of each layer

upperLeaf:GMSSLeaf[]

needed for precomputation of upper nodes

upperTreehashLeaf:GMSSLeaf[]

needed for precomputation of upper treehash nodes

minTreehash:int[]

index of next treehash instance to receive an update

nextRoot:byte[][]

the roots of the next trees (ROOT+)

nextNextRoot:GMSSRootCalc[]

the roots of the tree after next (ROOT++)

currentRootSig:byte[][]

array of signatures of the roots of the current subtrees (SIG)

nextRootSig:GMSSRootSig[]

array of signatures of the roots of the next subtree (SIG+)

gmssParameterset:GMSSParameters

the GMSS Parameterset

algorithms:AlgorithmIdentifier[]

An array of algorithm identifiers, containing the hash function details

getInstanceback to summary
public static GMSSPrivateKey getInstance(Object o)
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.