Class CMCEPrivateKey

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class CMCEPrivateKey
    extends ASN1Object
    ASN.1 Encoding for a Classic McEliece private key for fully populated:
     McEliecePrivateKey ::= SEQUENCE {
        Version    INTEGER {v0(0)} -- version (round 3)
        delta      OCTET STRING,   -- nonce
        C          OCTET STRING,   -- column selections
        g          OCTET STRING,   -- monic irreducible polynomial
        alpha      OCTET STRING,   -- field orderings
        s          OCTET STRING,   -- random n-bit string
        PublicKey  [0] IMPLICIT McEliecePublicKey OPTIONAL
                                    -- see next section
        }
     
    • Constructor Detail

      • CMCEPrivateKey

        public CMCEPrivateKey​(int version,
                              byte[] delta,
                              byte[] c,
                              byte[] g,
                              byte[] alpha,
                              byte[] s)
      • CMCEPrivateKey

        public CMCEPrivateKey​(int version,
                              byte[] delta,
                              byte[] c,
                              byte[] g,
                              byte[] alpha,
                              byte[] s,
                              CMCEPublicKey pubKey)
    • Method Detail

      • getVersion

        public int getVersion()
      • getDelta

        public byte[] getDelta()
      • getC

        public byte[] getC()
      • getG

        public byte[] getG()
      • getAlpha

        public byte[] getAlpha()
      • getS

        public byte[] getS()
      • getInstance

        public static CMCEPrivateKey getInstance​(java.lang.Object o)