Class McElieceCCA2Parameters

    • Constructor Detail

      • McElieceCCA2Parameters

        public McElieceCCA2Parameters()
        Constructor. Set the default parameters: extension degree.
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(java.lang.String digest)
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(int keysize)
        Constructor.
        Parameters:
        keysize - the length of a Goppa code
        Throws:
        java.lang.IllegalArgumentException - if keysize < 1.
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(int keysize,
                                      java.lang.String digest)
        Constructor.
        Parameters:
        keysize - the length of a Goppa code
        digest - CCA2 mode digest
        Throws:
        java.lang.IllegalArgumentException - if keysize < 1.
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(int m,
                                      int t)
        Constructor.
        Parameters:
        m - degree of the finite field GF(2^m)
        t - error correction capability of the code
        Throws:
        java.lang.IllegalArgumentException - if m < 1 or m > 32 or t < 0 or t > n.
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(int m,
                                      int t,
                                      java.lang.String digest)
        Constructor.
        Parameters:
        m - degree of the finite field GF(2^m)
        t - error correction capability of the code
        Throws:
        java.lang.IllegalArgumentException - if m < 1 or m > 32 or t < 0 or t > n.
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(int m,
                                      int t,
                                      int poly)
        Constructor.
        Parameters:
        m - degree of the finite field GF(2^m)
        t - error correction capability of the code
        poly - the field polynomial
        Throws:
        java.lang.IllegalArgumentException - if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
      • McElieceCCA2Parameters

        public McElieceCCA2Parameters​(int m,
                                      int t,
                                      int poly,
                                      java.lang.String digest)
        Constructor.
        Parameters:
        m - degree of the finite field GF(2^m)
        t - error correction capability of the code
        poly - the field polynomial
        digest - CCA2 mode digest
        Throws:
        java.lang.IllegalArgumentException - if m < 1 or m > 32 or t < 0 or t > n or poly is not an irreducible field polynomial.
    • Method Detail

      • getDigest

        public java.lang.String getDigest()
        Return the CCA2 mode digest if set.
        Returns:
        the CCA2 digest to use, null if not present.