Class BCFalconPrivateKey
java.lang.Object
org.bouncycastle.pqc.jcajce.provider.falcon.BCFalconPrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable, FalconKey, FalconPrivateKey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare this Falcon private 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.Return the public key corresponding to this private key.inthashCode()Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Destroyable
destroy, isDestroyed
-
Constructor Details
-
BCFalconPrivateKey
-
BCFalconPrivateKey
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey- Returns:
- name of the algorithm - "FALCON-512 or FALCON-1024"
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
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:FalconKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceFalconKey- Returns:
- a FalconParameterSpec
-
getFormat
-
getPublicKey
Description copied from interface:FalconPrivateKeyReturn the public key corresponding to this private key.- Specified by:
getPublicKeyin interfaceFalconPrivateKey- Returns:
- a Falcon Public Key
-