Class BCMLDSAPublicKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.mldsa.BCMLDSAPublicKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey, BCKey, MLDSAKey, MLDSAPublicKey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare this ML-DSA 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: rho || t1.inthashCode()toString()
-
Constructor Details
-
BCMLDSAPublicKey
-
BCMLDSAPublicKey
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey- Returns:
- name of the algorithm - "ML-DSA" followed by the parameter type.
-
getPublicData
public byte[] getPublicData()Description copied from interface:MLDSAPublicKeyReturn the raw encoded data representing the public key: rho || t1.- Specified by:
getPublicDatain interfaceMLDSAPublicKey- Returns:
- the concatenation of rho and t1.
-
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:MLDSAKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceMLDSAKey- Returns:
- a MLDSAParameterSpec
-
toString
-