Top Description Fields Constructors Methods
org.bouncycastle.pqc.asn1

public Class KyberPublicKey

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .DEROctetString, .DERSequence, org.bouncycastle.util.Arrays

Crystal Kyber Public Key Format. See https://www.ietf.org/archive/id/draft-uni-qsckeys-kyber-01.html for details.
    KyberPublicKey ::= SEQUENCE {
     t           OCTET STRING,
     rho         OCTET STRING
 }

Field Summary

Modifier and TypeField and Description
private byte[]
private byte[]
t

Constructor Summary

AccessConstructor and Description
public
KyberPublicKey(byte[] t, byte[] rho)

public
KyberPublicKey(ASN1Sequence seq)
Deprecated use getInstance()

Method Summary

Modifier and TypeMethod and Description
public static KyberPublicKey
public byte[]
public byte[]
getT()

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

rhoback to summary
private byte[] rho
tback to summary
private byte[] t

Constructor Detail

KyberPublicKeyback to summary
public KyberPublicKey(byte[] t, byte[] rho)
KyberPublicKeyback to summary
public KyberPublicKey(ASN1Sequence seq)

Deprecated

use getInstance()

Method Detail

getInstanceback to summary
public static KyberPublicKey getInstance(Object o)
getRhoback to summary
public byte[] getRho()
getTback to summary
public byte[] getT()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.