Class NTRUEncryptionPublicKeyParameters

    • Constructor Detail

      • NTRUEncryptionPublicKeyParameters

        public NTRUEncryptionPublicKeyParameters​(IntegerPolynomial h,
                                                 NTRUEncryptionParameters params)
        Constructs a new public key from a polynomial
        Parameters:
        h - the polynomial h which determines the key
        params - the NtruEncrypt parameters to use
      • NTRUEncryptionPublicKeyParameters

        public NTRUEncryptionPublicKeyParameters​(byte[] b,
                                                 NTRUEncryptionParameters params)
        Converts a byte array to a polynomial h and constructs a new public key
        Parameters:
        b - an encoded polynomial
        params - the NtruEncrypt parameters to use
        See Also:
        getEncoded()
      • NTRUEncryptionPublicKeyParameters

        public NTRUEncryptionPublicKeyParameters​(java.io.InputStream is,
                                                 NTRUEncryptionParameters params)
                                          throws java.io.IOException
        Reads a polynomial h from an input stream and constructs a new public key
        Parameters:
        is - an input stream
        params - the NtruEncrypt parameters to use
        Throws:
        java.io.IOException
        See Also:
        writeTo(OutputStream)