Class BCNHPrivateKey

java.lang.Object
org.bouncycastle.pqc.jcajce.provider.newhope.BCNHPrivateKey
All Implemented Interfaces:
Serializable, Key, PrivateKey, Destroyable, NHKey, NHPrivateKey

public class BCNHPrivateKey extends Object implements NHPrivateKey
See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Compare this NH private key with another object.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      the result of the comparison
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAlgorithm

      public final String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
      Returns:
      name of the algorithm - "NH"
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface Key
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key
    • getSecretData

      public short[] getSecretData()
      Specified by:
      getSecretData in interface NHPrivateKey