|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.pqc.asn1.RainbowPrivateKey
public class RainbowPrivateKey
Return the key data to encode in the PrivateKeyInfo structure.
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 Summary | |
|---|---|
RainbowPrivateKey(short[][] invA1,
short[] b1,
short[][] invA2,
short[] b2,
int[] vi,
Layer[] layers)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.bouncycastle.asn1.ASN1Object |
|---|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RainbowPrivateKey(short[][] invA1,
short[] b1,
short[][] invA2,
short[] b2,
int[] vi,
Layer[] layers)
| Method Detail |
|---|
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()
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object
|
Bouncy Castle Cryptography 1.50 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||