Class BCCMCEPublicKey
- java.lang.Object
-
- org.bouncycastle.pqc.jcajce.provider.cmce.BCCMCEPublicKey
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Key,java.security.PublicKey,CMCEKey
@Deprecated public class BCCMCEPublicKey extends java.lang.Object implements java.security.PublicKey, CMCEKey
Deprecated.the standardised Classic McEliece KEM (ISO/IEC 18033-2:2006/Amd 2:2026) is now provided under org.bouncycastle.crypto and org.bouncycastle.jcajce (see org.bouncycastle.crypto.params.CMCEParameters and org.bouncycastle.jcajce.spec.CMCEParameterSpec). This is the legacy NIST round 3 (non-pc, incl. mceliece348864) implementation, retained for backwards compatibility.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BCCMCEPublicKey(SubjectPublicKeyInfo keyInfo)Deprecated.BCCMCEPublicKey(CMCEPublicKeyParameters 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 CMCE public key with another object.java.lang.StringgetAlgorithm()Deprecated.byte[]getEncoded()Deprecated.java.lang.StringgetFormat()Deprecated.CMCEParameterSpecgetParameterSpec()Deprecated.Return the parameters for this key.inthashCode()Deprecated.
-
-
-
Constructor Detail
-
BCCMCEPublicKey
public BCCMCEPublicKey(CMCEPublicKeyParameters params)
Deprecated.
-
BCCMCEPublicKey
public BCCMCEPublicKey(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Compare this CMCE public 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 - "CMCE"
-
getEncoded
public byte[] getEncoded()
Deprecated.- Specified by:
getEncodedin interfacejava.security.Key
-
getFormat
public java.lang.String getFormat()
Deprecated.- Specified by:
getFormatin interfacejava.security.Key
-
getParameterSpec
public CMCEParameterSpec getParameterSpec()
Deprecated.Description copied from interface:CMCEKeyReturn the parameters for this key.- Specified by:
getParameterSpecin interfaceCMCEKey- Returns:
- a CMCEParameterSpec
-
-