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

public Class SPHINCSPLUSPrivateKey

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

See https://datatracker.ietf.org/doc/draft-uni-qsckeys-sphincsplus/00/ for details ASN.1 Encoding for a SphincsPlus private key for fully populated:
  SPHINCSPLUSPrivateKey ::= SEQUENCE {
    version          INTEGER {v2(1)}     --syntax version 2 (round 3)
    skseed          OCTET STRING,        --n-byte private key seed
    skprf           OCTET STRING,        --n-byte private key seed
    PublicKey       SPHINCSPLUSPublicKey --public key
  }

Field Summary

Modifier and TypeField and Description
private SPHINCSPLUSPublicKey
private byte[]
private byte[]
private int

Constructor Summary

AccessConstructor and Description
public
SPHINCSPLUSPrivateKey(int version, byte[] skseed, byte[] skprf)

public
SPHINCSPLUSPrivateKey(int version, byte[] skseed, byte[] skprf, SPHINCSPLUSPublicKey publicKey)

public
SPHINCSPLUSPrivateKey(ASN1Sequence seq)
Deprecated use getInstance()

Method Summary

Modifier and TypeMethod and Description
public static SPHINCSPLUSPrivateKey
public SPHINCSPLUSPublicKey
public byte[]
public byte[]
public int
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

PublicKeyback to summary
private SPHINCSPLUSPublicKey PublicKey
skprfback to summary
private byte[] skprf
skseedback to summary
private byte[] skseed
versionback to summary
private int version

Constructor Detail

SPHINCSPLUSPrivateKeyback to summary
public SPHINCSPLUSPrivateKey(int version, byte[] skseed, byte[] skprf)
SPHINCSPLUSPrivateKeyback to summary
public SPHINCSPLUSPrivateKey(int version, byte[] skseed, byte[] skprf, SPHINCSPLUSPublicKey publicKey)
SPHINCSPLUSPrivateKeyback to summary
public SPHINCSPLUSPrivateKey(ASN1Sequence seq)

Deprecated

use getInstance()

Method Detail

getInstanceback to summary
public static SPHINCSPLUSPrivateKey getInstance(Object o)
getPublicKeyback to summary
public SPHINCSPLUSPublicKey getPublicKey()
getSkprfback to summary
public byte[] getSkprf()
getSkseedback to summary
public byte[] getSkseed()
getVersionback to summary
public int getVersion()
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.