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

public Class SABERPrivateKey

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

Expires 13 May 2022 SABERPrivateKey ::= SEQUENCE { version INTEGER {v0(0)} -- version (round 3) z OCTET STRING, -- 32-byte random value z s OCTET STRING, -- short integer polynomial s PublicKey [0] IMPLICIT SABERPublicKey OPTIONAL, -- see next section hpk OCTET STRING -- H(pk) }

Field Summary

Modifier and TypeField and Description
private byte[]
private SABERPublicKey
private byte[]
s

private int
private byte[]
z

Constructor Summary

AccessConstructor and Description
public
SABERPrivateKey(int version, byte[] z, byte[] s, byte[] hpk)

public
SABERPrivateKey(int version, byte[] z, byte[] s, byte[] hpk, SABERPublicKey publicKey)

private

Method Summary

Modifier and TypeMethod and Description
public byte[]
public static SABERPrivateKey
public SABERPublicKey
public byte[]
getS()

public int
public byte[]
getZ()

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

hpkback to summary
private byte[] hpk
PublicKeyback to summary
private SABERPublicKey PublicKey
sback to summary
private byte[] s
versionback to summary
private int version
zback to summary
private byte[] z

Constructor Detail

SABERPrivateKeyback to summary
public SABERPrivateKey(int version, byte[] z, byte[] s, byte[] hpk)
SABERPrivateKeyback to summary
public SABERPrivateKey(int version, byte[] z, byte[] s, byte[] hpk, SABERPublicKey publicKey)
SABERPrivateKeyback to summary
private SABERPrivateKey(ASN1Sequence seq)

Method Detail

getHpkback to summary
public byte[] getHpk()
getInstanceback to summary
public static SABERPrivateKey getInstance(Object o)
getPublicKeyback to summary
public SABERPublicKey getPublicKey()
getSback to summary
public byte[] getS()
getVersionback to summary
public int getVersion()
getZback to summary
public byte[] getZ()
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.