Class AsymmetricLMSPublicKey
java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricLMSKey
org.bouncycastle.crypto.asymmetric.AsymmetricLMSPublicKey
- All Implemented Interfaces:
AsymmetricKey,AsymmetricPublicKey,Key
Leighton-Micali Hash-Based Signatures (LMS) public keys.
-
Field Summary
Fields inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricLMSKey
L -
Constructor Summary
ConstructorsConstructorDescriptionAsymmetricLMSPublicKey(byte[] encoding) Construct a key from an encoding of a SubjectPublicKeyInfo.AsymmetricLMSPublicKey(int levels, byte[] keyData) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if o is an equivalent key to this.org.bouncycastle.crypto.internal.pqc.lms.LMSContextBasedVerifierbyte[]Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.byte[]inthashCode()Return the hashCode for the key.Methods inherited from class org.bouncycastle.crypto.asymmetric.AsymmetricLMSKey
checkApprovedOnlyModeStatus, getAlgorithm, getL, isThreadCorrectMode, zeroizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.Key
getAlgorithm
-
Constructor Details
-
AsymmetricLMSPublicKey
public AsymmetricLMSPublicKey(int levels, byte[] keyData) -
AsymmetricLMSPublicKey
Construct a key from an encoding of a SubjectPublicKeyInfo.- Parameters:
encoding- the DER encoding of the key.- Throws:
IOException
-
AsymmetricLMSPublicKey
- Throws:
IOException
-
-
Method Details
-
getPublicData
public byte[] getPublicData() -
getEncoded
public byte[] getEncoded()Description copied from interface:AsymmetricKeyReturn an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.- Specified by:
getEncodedin interfaceAsymmetricKey- Returns:
- an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
-
equals
Description copied from interface:KeyReturn true if o is an equivalent key to this. -
hashCode
public int hashCode()Description copied from interface:KeyReturn the hashCode for the key. -
getContextBasedVerifier
public org.bouncycastle.crypto.internal.pqc.lms.LMSContextBasedVerifier getContextBasedVerifier()
-