Class BCSLHDSAPublicKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.slhdsa.BCSLHDSAPublicKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey, BCKey, SLHDSAKey, SLHDSAPublicKey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare this SPHINCS-256 public key with another object.final Stringbyte[]Return the parameters for this key.Return the parameter set of this key as a java.security.spec.NamedParameterSpec, the form the JDK's own keys report through java.security.AsymmetricKey.getParams() from Java 22.byte[]Return the raw encoded data representing the public key: seed || root.inthashCode()toString()
-
Constructor Details
-
BCSLHDSAPublicKey
-
BCSLHDSAPublicKey
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey- Returns:
- name of the algorithm - "SLH-DSA" followed by the parameter type.
-
getPublicData
public byte[] getPublicData()Description copied from interface:SLHDSAPublicKeyReturn the raw encoded data representing the public key: seed || root.- Specified by:
getPublicDatain interfaceSLHDSAPublicKey- Returns:
- the concatenation of the seed and root values.
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getFormat
-
getParams
Return the parameter set of this key as a java.security.spec.NamedParameterSpec, the form the JDK's own keys report through java.security.AsymmetricKey.getParams() from Java 22.- Specified by:
getParamsin interfaceAsymmetricKey- Returns:
- a NamedParameterSpec naming the parameter set on Java 11 and later, null otherwise.
-
getParameterSpec
Description copied from interface:SLHDSAKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceSLHDSAKey- Returns:
- a SLHDSAParameterSpec
-
toString
-