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

public Class RainbowPublicKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.pqc.legacy.crypto.rainbow.util.RainbowUtil

This class implements an ASN.1 encoded Rainbow public key. The ASN.1 definition of this structure is:
      RainbowPublicKey ::= SEQUENCE {
        CHOICE
        {
        oid        OBJECT IDENTIFIER         -- OID identifying the algorithm
        version    INTEGER                    -- 0
        }
        docLength        Integer               -- length of the code
        coeffquadratic   SEQUENCE OF OCTET STRING -- quadratic (mixed) coefficients
        coeffsingular    SEQUENCE OF OCTET STRING -- singular coefficients
        coeffscalar    SEQUENCE OF OCTET STRING -- scalar coefficients
      }

Field Summary

Modifier and TypeField and Description
private byte[][]
private byte[]
private byte[][]
private ASN1Integer
private ASN1ObjectIdentifier
private ASN1Integer

Constructor Summary

AccessConstructor and Description
private
public
RainbowPublicKey(int docLength, short[][] coeffQuadratic, short[][] coeffSingular, short[] coeffScalar)

Method Summary

Modifier and TypeMethod and Description
public short[][]

Returns:

the coeffquadratic
getCoeffQuadratic
()

public short[]

Returns:

the coeffscalar
getCoeffScalar
()

public short[][]

Returns:

the coeffsingular
getCoeffSingular
()

public int

Returns:

the docLength
getDocLength
()

public static RainbowPublicKey
public ASN1Integer
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

coeffQuadraticback to summary
private byte[][] coeffQuadratic
coeffScalarback to summary
private byte[] coeffScalar
coeffSingularback to summary
private byte[][] coeffSingular
docLengthback to summary
private ASN1Integer docLength
oidback to summary
private ASN1ObjectIdentifier oid
versionback to summary
private ASN1Integer version

Constructor Detail

RainbowPublicKeyback to summary
private RainbowPublicKey(ASN1Sequence seq)
RainbowPublicKeyback to summary
public RainbowPublicKey(int docLength, short[][] coeffQuadratic, short[][] coeffSingular, short[] coeffScalar)

Method Detail

getCoeffQuadraticback to summary
public short[][] getCoeffQuadratic()
Returns:short[][]

the coeffquadratic

getCoeffScalarback to summary
public short[] getCoeffScalar()
Returns:short[]

the coeffscalar

getCoeffSingularback to summary
public short[][] getCoeffSingular()
Returns:short[][]

the coeffsingular

getDocLengthback to summary
public int getDocLength()
Returns:int

the docLength

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