Package org.bouncycastle.mls.crypto.bc
Class BcMlsSigner
java.lang.Object
org.bouncycastle.mls.crypto.bc.BcMlsSigner
- All Implemented Interfaces:
MlsSigner
-
Field Summary
Fields inherited from interface org.bouncycastle.mls.crypto.MlsSigner
ecdsa_secp256r1_sha256, ecdsa_secp384r1_sha384, ecdsa_secp521r1_sha512, ed25519, ed448 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.crypto.AsymmetricCipherKeyPairdeserializePrivateKey(byte[] priv) org.bouncycastle.crypto.params.AsymmetricKeyParameterdeserializePublicKey(byte[] pub) org.bouncycastle.crypto.AsymmetricCipherKeyPairbyte[]serializePrivateKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) byte[]serializePublicKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) byte[]signWithLabel(byte[] priv, String label, byte[] content) booleanverifyWithLabel(byte[] pub, String label, byte[] content, byte[] signature)
-
Constructor Details
-
BcMlsSigner
public BcMlsSigner(int sigID)
-
-
Method Details
-
generateSignatureKeyPair
public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateSignatureKeyPair()- Specified by:
generateSignatureKeyPairin interfaceMlsSigner
-
serializePublicKey
public byte[] serializePublicKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) - Specified by:
serializePublicKeyin interfaceMlsSigner
-
serializePrivateKey
public byte[] serializePrivateKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) - Specified by:
serializePrivateKeyin interfaceMlsSigner
-
deserializePublicKey
public org.bouncycastle.crypto.params.AsymmetricKeyParameter deserializePublicKey(byte[] pub) - Specified by:
deserializePublicKeyin interfaceMlsSigner
-
deserializePrivateKey
public org.bouncycastle.crypto.AsymmetricCipherKeyPair deserializePrivateKey(byte[] priv) - Specified by:
deserializePrivateKeyin interfaceMlsSigner
-
signWithLabel
public byte[] signWithLabel(byte[] priv, String label, byte[] content) throws IOException, org.bouncycastle.crypto.CryptoException - Specified by:
signWithLabelin interfaceMlsSigner- Throws:
IOExceptionorg.bouncycastle.crypto.CryptoException
-
verifyWithLabel
public boolean verifyWithLabel(byte[] pub, String label, byte[] content, byte[] signature) throws IOException - Specified by:
verifyWithLabelin interfaceMlsSigner- Throws:
IOException
-