Class RainbowPublicKey

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class RainbowPublicKey
    extends ASN1Object
    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
           }
     
    • Constructor Detail

      • RainbowPublicKey

        public RainbowPublicKey​(int docLength,
                                short[][] coeffQuadratic,
                                short[][] coeffSingular,
                                short[] coeffScalar)
    • Method Detail

      • getInstance

        public static RainbowPublicKey getInstance​(java.lang.Object o)
      • getDocLength

        public int getDocLength()
        Returns:
        the docLength
      • getCoeffQuadratic

        public short[][] getCoeffQuadratic()
        Returns:
        the coeffquadratic
      • getCoeffSingular

        public short[][] getCoeffSingular()
        Returns:
        the coeffsingular
      • getCoeffScalar

        public short[] getCoeffScalar()
        Returns:
        the coeffscalar