Package org.bouncycastle.mls.crypto
Interface MlsSigner
- All Known Implementing Classes:
BcMlsSigner
public interface MlsSigner
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.crypto.AsymmetricCipherKeyPair
deserializePrivateKey
(byte[] priv) org.bouncycastle.crypto.params.AsymmetricKeyParameter
deserializePublicKey
(byte[] pub) org.bouncycastle.crypto.AsymmetricCipherKeyPair
byte[]
serializePrivateKey
(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) byte[]
serializePublicKey
(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) byte[]
signWithLabel
(byte[] priv, String label, byte[] content) boolean
verifyWithLabel
(byte[] pub, String label, byte[] content, byte[] signature)
-
Field Details
-
ecdsa_secp256r1_sha256
static final int ecdsa_secp256r1_sha256- See Also:
-
ecdsa_secp521r1_sha512
static final int ecdsa_secp521r1_sha512- See Also:
-
ecdsa_secp384r1_sha384
static final int ecdsa_secp384r1_sha384- See Also:
-
ed25519
static final int ed25519- See Also:
-
ed448
static final int ed448- See Also:
-
-
Method Details
-
generateSignatureKeyPair
org.bouncycastle.crypto.AsymmetricCipherKeyPair generateSignatureKeyPair() -
serializePublicKey
byte[] serializePublicKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) -
serializePrivateKey
byte[] serializePrivateKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key) -
signWithLabel
byte[] signWithLabel(byte[] priv, String label, byte[] content) throws IOException, org.bouncycastle.crypto.CryptoException - Throws:
IOException
org.bouncycastle.crypto.CryptoException
-
verifyWithLabel
boolean verifyWithLabel(byte[] pub, String label, byte[] content, byte[] signature) throws IOException - Throws:
IOException
-
deserializePrivateKey
org.bouncycastle.crypto.AsymmetricCipherKeyPair deserializePrivateKey(byte[] priv) -
deserializePublicKey
org.bouncycastle.crypto.params.AsymmetricKeyParameter deserializePublicKey(byte[] pub)
-