Class BCFrodoKEMPrivateKey
java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.frodokem.BCFrodoKEMPrivateKey
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable, FrodoKEMKey, FrodoKEMPrivateKey
- See Also:
-
Constructor Details
-
BCFrodoKEMPrivateKey
-
BCFrodoKEMPrivateKey
- Throws:
IOException
-
-
Method Details
-
equals
-
hashCode
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKey- Returns:
- name of the algorithm - "FRODOKEM..." followed by the parameter type.
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey
-
getFormat
-
getParameterSpec
Description copied from interface:FrodoKEMKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceFrodoKEMKey- Returns:
- a FrodoKEMParameterSpec
-
destroy
public void destroy()Destroy this key, zeroizing the secret key material it holds.After destruction
isDestroyed()returns true andgetEncoded()throwsIllegalStateException.- Specified by:
destroyin interfaceDestroyable
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceDestroyable
-