Class BcTlsECDSA13Signer

java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
org.bouncycastle.tls.crypto.impl.bc.BcTlsECDSA13Signer
All Implemented Interfaces:
TlsSigner

public class BcTlsECDSA13Signer extends BcTlsSigner
Implementation class for generation of ECDSA signatures in TLS 1.3+ using the BC light-weight API.
  • Constructor Details

    • BcTlsECDSA13Signer

      public BcTlsECDSA13Signer(BcTlsCrypto crypto, org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey, int signatureScheme)
  • Method Details

    • generateRawSignature

      public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException
      Description copied from interface: TlsSigner
      Generate an encoded signature based on the passed in hash.
      Parameters:
      algorithm - the signature algorithm to use.
      hash - the hash calculated for the signature.
      Returns:
      an encoded signature.
      Throws:
      IOException - in case of an exception processing the hash.