Class NTRUSigningPrivateKeyParameters

    • Constructor Detail

      • NTRUSigningPrivateKeyParameters

        public NTRUSigningPrivateKeyParameters​(byte[] b,
                                               NTRUSigningKeyGenerationParameters params)
                                        throws java.io.IOException
        Constructs a new private key from a byte array
        Parameters:
        b - an encoded private key
        params - the NtruSign parameters to use
        Throws:
        java.io.IOException
      • NTRUSigningPrivateKeyParameters

        public NTRUSigningPrivateKeyParameters​(java.io.InputStream is,
                                               NTRUSigningKeyGenerationParameters params)
                                        throws java.io.IOException
        Constructs a new private key from an input stream
        Parameters:
        is - an input stream
        params - the NtruSign parameters to use
        Throws:
        java.io.IOException
    • Method Detail

      • getEncoded

        public byte[] getEncoded()
                          throws java.io.IOException
        Converts the key to a byte array
        Returns:
        the encoded key
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.OutputStream os)
                     throws java.io.IOException
        Writes the key to an output stream
        Parameters:
        os - an output stream
        Throws:
        java.io.IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object