Class BCCMCEPrivateKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Key, java.security.PrivateKey, javax.security.auth.Destroyable, CMCEKey

    @Deprecated
    public class BCCMCEPrivateKey
    extends java.lang.Object
    implements java.security.PrivateKey, 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 Detail

      • BCCMCEPrivateKey

        public BCCMCEPrivateKey​(PrivateKeyInfo keyInfo)
                         throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Deprecated.
        Compare this CMCE private key with another object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the other object
        Returns:
        the result of the comparison
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • getAlgorithm

        public final java.lang.String getAlgorithm()
        Deprecated.
        Specified by:
        getAlgorithm in interface java.security.Key
        Returns:
        name of the algorithm - "CMCE"
      • getEncoded

        public byte[] getEncoded()
        Deprecated.
        Specified by:
        getEncoded in interface java.security.Key
      • getParameterSpec

        public CMCEParameterSpec getParameterSpec()
        Deprecated.
        Description copied from interface: CMCEKey
        Return the parameters for this key.
        Specified by:
        getParameterSpec in interface CMCEKey
        Returns:
        a CMCEParameterSpec
      • getFormat

        public java.lang.String getFormat()
        Deprecated.
        Specified by:
        getFormat in interface java.security.Key