Class KyberPrivateKey

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class KyberPrivateKey
    extends ASN1Object
    Crystal Kyber Private Key Format. See https://www.ietf.org/archive/id/draft-uni-qsckeys-kyber-01.html for details. KyberPrivateKey ::= SEQUENCE { version INTEGER {v0(0)} -- version (round 3) s OCTET STRING, -- sample s publicKey [0] IMPLICIT KyberPublicKey OPTIONAL, -- see next section hpk OCTET STRING -- H(pk) nonce OCTET STRING, -- z }
    • Constructor Detail

      • KyberPrivateKey

        public KyberPrivateKey​(int version,
                               byte[] s,
                               byte[] hpk,
                               byte[] nonce,
                               KyberPublicKey publicKey)
      • KyberPrivateKey

        public KyberPrivateKey​(int version,
                               byte[] s,
                               byte[] hpk,
                               byte[] nonce)
    • Method Detail

      • getVersion

        public int getVersion()
      • getS

        public byte[] getS()
      • getHpk

        public byte[] getHpk()
      • getNonce

        public byte[] getNonce()
      • getInstance

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