Class BCFrodoPrivateKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.frodo.BCFrodoPrivateKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PrivateKey,javax.security.auth.Destroyable,FrodoKey
@Deprecated public class BCFrodoPrivateKey extends java.lang.Object implements java.security.PrivateKey, FrodoKey
Deprecated.the standardised FrodoKEM (ISO/IEC 18033-2:2006/Amd 2:2026) is now provided under org.bouncycastle.crypto and org.bouncycastle.jcajce (see FrodoKEMParameters / FrodoKEMParameterSpec). This is the legacy NIST round 3 (unsalted, eFrodoKEM) implementation, retained for backwards compatibility.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCFrodoPrivateKey(PrivateKeyInfo keyInfo)Deprecated.BCFrodoPrivateKey(FrodoPrivateKeyParameters params)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.Compare this private key with another object.java.lang.StringgetAlgorithm()Deprecated.byte[]getEncoded()Deprecated.java.lang.StringgetFormat()Deprecated.FrodoParameterSpecgetParameterSpec()Deprecated.Return the parameters for this key.inthashCode()Deprecated.
-
-
-
Constructor Detail
-
BCFrodoPrivateKey
public BCFrodoPrivateKey(FrodoPrivateKeyParameters params)
Deprecated.
-
BCFrodoPrivateKey
public BCFrodoPrivateKey(PrivateKeyInfo keyInfo) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Compare this private key with another object.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- the other object- Returns:
- the result of the comparison
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
getAlgorithm
public final java.lang.String getAlgorithm()
Deprecated.- Specified by:
getAlgorithmin interfacejava.security.Key- Returns:
- name of the algorithm - "Frodo"
-
getEncoded
public byte[] getEncoded()
Deprecated.- Specified by:
getEncodedin interfacejava.security.Key
-
getParameterSpec
public FrodoParameterSpec getParameterSpec()
Deprecated.Description copied from interface:FrodoKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceFrodoKey- Returns:
- a FrodoParameterSpec
-
getFormat
public java.lang.String getFormat()
Deprecated.- Specified by:
getFormatin interfacejava.security.Key
-
-