Bouncy Castle Cryptography Library 1.79

org.bouncycastle.pqc.asn1
Class KyberPrivateKey

java.lang.Object
  |
  +--org.bouncycastle.asn1.ASN1Object
        |
        +--org.bouncycastle.pqc.asn1.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 Summary
KyberPrivateKey(int version, byte[] s, byte[] hpk, byte[] nonce)
           
KyberPrivateKey(int version, byte[] s, byte[] hpk, byte[] nonce, KyberPublicKey publicKey)
           
 
Method Summary
 byte[] getHpk()
           
static KyberPrivateKey getInstance(java.lang.Object o)
           
 byte[] getNonce()
           
 KyberPublicKey getPublicKey()
           
 byte[] getS()
           
 int getVersion()
           
 ASN1Primitive toASN1Primitive()
          Method providing a primitive representation of this object suitable for encoding.
 
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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()

getPublicKey

public KyberPublicKey getPublicKey()

getHpk

public byte[] getHpk()

getNonce

public byte[] getNonce()

toASN1Primitive

public ASN1Primitive toASN1Primitive()
Description copied from class: ASN1Object
Method providing a primitive representation of this object suitable for encoding.
Overrides:
toASN1Primitive in class ASN1Object
Following copied from class: org.bouncycastle.asn1.ASN1Object
Returns:
a primitive representation of this object.

getInstance

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

Bouncy Castle Cryptography Library 1.79