Class BcMlsSigner

java.lang.Object
org.bouncycastle.mls.crypto.bc.BcMlsSigner
All Implemented Interfaces:
MlsSigner

public class BcMlsSigner extends Object implements MlsSigner
  • Constructor Details

    • BcMlsSigner

      public BcMlsSigner(int sigID)
  • Method Details

    • generateSignatureKeyPair

      public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateSignatureKeyPair()
      Specified by:
      generateSignatureKeyPair in interface MlsSigner
    • serializePublicKey

      public byte[] serializePublicKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key)
      Specified by:
      serializePublicKey in interface MlsSigner
    • serializePrivateKey

      public byte[] serializePrivateKey(org.bouncycastle.crypto.params.AsymmetricKeyParameter key)
      Specified by:
      serializePrivateKey in interface MlsSigner
    • deserializePublicKey

      public org.bouncycastle.crypto.params.AsymmetricKeyParameter deserializePublicKey(byte[] pub)
      Specified by:
      deserializePublicKey in interface MlsSigner
    • deserializePrivateKey

      public org.bouncycastle.crypto.AsymmetricCipherKeyPair deserializePrivateKey(byte[] priv)
      Specified by:
      deserializePrivateKey in interface MlsSigner
    • signWithLabel

      public byte[] signWithLabel(byte[] priv, String label, byte[] content) throws IOException, org.bouncycastle.crypto.CryptoException
      Specified by:
      signWithLabel in interface MlsSigner
      Throws:
      IOException
      org.bouncycastle.crypto.CryptoException
    • verifyWithLabel

      public boolean verifyWithLabel(byte[] pub, String label, byte[] content, byte[] signature) throws IOException
      Specified by:
      verifyWithLabel in interface MlsSigner
      Throws:
      IOException