public class RainbowPrivateKey extends ASN1Object
The ASN.1 definition of the key structure is
RainbowPrivateKey ::= SEQUENCE { CHOICE { oid OBJECT IDENTIFIER -- OID identifying the algorithm version INTEGER -- 0 } A1inv SEQUENCE OF OCTET STRING -- inversed matrix of L1 b1 OCTET STRING -- translation vector of L1 A2inv SEQUENCE OF OCTET STRING -- inversed matrix of L2 b2 OCTET STRING -- translation vector of L2 vi OCTET STRING -- num of elmts in each Set S layers SEQUENCE OF Layer -- layers of F } Layer ::= SEQUENCE OF Poly Poly ::= SEQUENCE { alpha SEQUENCE OF OCTET STRING beta SEQUENCE OF OCTET STRING gamma OCTET STRING eta INTEGER }
Constructor and Description |
---|
RainbowPrivateKey(short[][] invA1,
short[] b1,
short[][] invA2,
short[] b2,
int[] vi,
Layer[] layers) |
Modifier and Type | Method and Description |
---|---|
short[] |
getB1()
Getter for the translation part of the private quadratic map L1.
|
short[] |
getB2()
Getter for the translation part of the private quadratic map L2.
|
static RainbowPrivateKey |
getInstance(java.lang.Object o) |
short[][] |
getInvA1()
Getter for the inverse matrix of A1.
|
short[][] |
getInvA2()
Getter for the inverse matrix of A2
|
Layer[] |
getLayers()
Returns the layers contained in the private key
|
ASN1Integer |
getVersion() |
int[] |
getVi()
Returns the array of vi-s
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public RainbowPrivateKey(short[][] invA1, short[] b1, short[][] invA2, short[] b2, int[] vi, Layer[] layers)
public static RainbowPrivateKey getInstance(java.lang.Object o)
public ASN1Integer getVersion()
public short[][] getInvA1()
public short[] getB1()
public short[] getB2()
public short[][] getInvA2()
public Layer[] getLayers()
public int[] getVi()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object