Top Description Fields Constructors Methods
org.bouncycastle.pqc.jcajce.provider.gmss

public Class BCGMSSPublicKey

extends Object
implements CipherParameters, PublicKey
Class Inheritance
All Implemented Interfaces
java.security.PublicKey, java.security.AsymmetricKey, java.security.Key, java.io.Serializable, org.bouncycastle.crypto.CipherParameters
Imports
java.security.PublicKey, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.crypto.CipherParameters, org.bouncycastle.pqc.asn1.GMSSPublicKey, .PQCObjectIdentifiers, .ParSet, org.bouncycastle.pqc.jcajce.provider.util.KeyUtil, org.bouncycastle.pqc.legacy.crypto.gmss.GMSSParameters, .GMSSPublicKeyParameters, org.bouncycastle.util.encoders.Hex

This class implements the GMSS public key and is usually initiated by the GMSSKeyPairGenerator.
See Also
org.bouncycastle.pqc.legacy.crypto.gmss.GMSSKeyPairGenerator

Field Summary

Modifier and TypeField and Description
private GMSSParameters
gmssParameterSet

The GMSSParameterSet

private GMSSParameters
private byte[]
publicKeyBytes

The GMSS public key

private static final long

Constructor Summary

AccessConstructor and Description
public
BCGMSSPublicKey(byte[]
a raw GMSS public key
pub
,
GMSSParameters
an instance of GMSS Parameterset
gmssParameterSet
)

The constructor

public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

"GMSS"
getAlgorithm
()

Implements java.security.Key.getAlgorithm.

Returns the name of the algorithm

public byte[]
getEncoded()

Implements java.security.Key.getEncoded.

Returns the key in its primary encoding format, or null if this key does not support encoding.

public String
getFormat()

Implements java.security.Key.getFormat.

Returns the name of the primary encoding format of this key, or null if this key does not support encoding.

public GMSSParameters

Returns:

The GMSS Parameterset
getParameterSet
()

public byte[]

Returns:

The GMSS public key byte array
getPublicKeyBytes
()

public String

Returns:

A human readable form of the GMSS public key
toString
()

Overrides java.lang.Object.toString.

Returns a human readable form of the GMSS public key

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

gmssParameterSetback to summary
private GMSSParameters gmssParameterSet

The GMSSParameterSet

gmssParamsback to summary
private GMSSParameters gmssParams
publicKeyBytesback to summary
private byte[] publicKeyBytes

The GMSS public key

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.PublicKey.serialVersionUID.

Constructor Detail

BCGMSSPublicKeyback to summary
public BCGMSSPublicKey(byte[] pub, GMSSParameters gmssParameterSet)

The constructor

Parameters
pub:byte[]

a raw GMSS public key

gmssParameterSet:GMSSParameters

an instance of GMSS Parameterset

See Also
org.bouncycastle.pqc.legacy.crypto.gmss.GMSSKeyPairGenerator
BCGMSSPublicKeyback to summary
public BCGMSSPublicKey(GMSSPublicKeyParameters params)

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements java.security.Key.getAlgorithm.

Returns the name of the algorithm

Returns:String

"GMSS"

getEncodedback to summary
public byte[] getEncoded()

Implements java.security.Key.getEncoded.

Doc from java.security.Key.getEncoded.

Returns the key in its primary encoding format, or null if this key does not support encoding.

Returns:byte[]

the encoded key, or null if the key does not support encoding.

getFormatback to summary
public String getFormat()

Implements java.security.Key.getFormat.

Doc from java.security.Key.getFormat.

Returns the name of the primary encoding format of this key, or null if this key does not support encoding. The primary encoding format is named in terms of the appropriate ASN.1 data format, if an ASN.1 specification for this key exists. For example, the name of the ASN.1 data format for public keys is SubjectPublicKeyInfo, as defined by the X.509 standard; in this case, the returned format is "X.509". Similarly, the name of the ASN.1 data format for private keys is PrivateKeyInfo, as defined by the PKCS #8 standard; in this case, the returned format is "PKCS#8".

Returns:String

the primary encoding format of the key.

getParameterSetback to summary
public GMSSParameters getParameterSet()
Returns:GMSSParameters

The GMSS Parameterset

getPublicKeyBytesback to summary
public byte[] getPublicKeyBytes()
Returns:byte[]

The GMSS public key byte array

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns a human readable form of the GMSS public key

Returns:String

A human readable form of the GMSS public key