Class BcHssLmsContentVerifierProviderBuilder

java.lang.Object
org.bouncycastle.operator.bc.BcContentVerifierProviderBuilder
org.bouncycastle.operator.bc.BcHssLmsContentVerifierProviderBuilder

public class BcHssLmsContentVerifierProviderBuilder extends BcContentVerifierProviderBuilder
Builder for creating content verifier providers that support the HSS/LMS Hash-Based Signature Algorithm. Reference: Use of the HSS/LMS Hash-Based Signature Algorithm in the Cryptographic Message Syntax (CMS) RFC 9708.

  • Constructor Details

    • BcHssLmsContentVerifierProviderBuilder

      public BcHssLmsContentVerifierProviderBuilder()
  • Method Details

    • createSigner

      protected org.bouncycastle.crypto.Signer createSigner(org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId) throws OperatorCreationException
      Description copied from class: BcContentVerifierProviderBuilder
      Create the correct signer for the algorithm identifier sigAlgId.
      Specified by:
      createSigner in class BcContentVerifierProviderBuilder
      Parameters:
      sigAlgId - the algorithm details for the signature we want to verify.
      Returns:
      a Signer object.
      Throws:
      OperatorCreationException - if the Signer cannot be constructed.
    • extractKeyParameters

      protected org.bouncycastle.crypto.params.AsymmetricKeyParameter extractKeyParameters(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) throws IOException
      Description copied from class: BcContentVerifierProviderBuilder
      Extract an AsymmetricKeyParameter from the passed in SubjectPublicKeyInfo structure.
      Specified by:
      extractKeyParameters in class BcContentVerifierProviderBuilder
      Parameters:
      publicKeyInfo - a publicKeyInfo structure describing the public key required.
      Returns:
      an AsymmetricKeyParameter object containing the appropriate public key.
      Throws:
      IOException - if the publicKeyInfo data cannot be parsed,