/// <summary> /// Generate digest. The digest can be reused. /// </summary> /// <param name="parameters">Parameters.</param> /// <returns></returns> /// <exception cref="Exception"/> public IMac GenerateDigest(ICipherParameters parameters) { IMac digest = new HMac(_hashAlgorithm.GenerateDigest()); digest.Init(parameters); return(digest); }
private protected override ISigner GenerateSigner() { IDigest digest = _hashAlgorithm.GenerateDigest(); return(new Iso9796d2Signer(new RsaBlindedEngine(), digest, true)); }
private protected override ISigner GenerateSigner() { IDigest digest = _hashAlgorithm.GenerateDigest(); return(new Gost3410DigestSigner(new Gost3410Signer(), digest)); }
private protected override ISigner GenerateSigner() { IDigest digest = _hashAlgorithm.GenerateDigest(); return(_identifier is null ? new RsaDigestSigner(digest) : new RsaDigestSigner(digest, _identifier)); }
private protected override ISigner GenerateSigner() { IDigest digest = _hashAlgorithm.GenerateDigest(); return(new DsaDigestSigner(new ECDsaSigner(), digest, PlainDsaEncoding.Instance)); }
private protected override ISigner GenerateSigner() { IDigest digest = _hashAlgorithm.GenerateDigest(); return(new SM2Signer(digest)); }
private protected override ISigner GenerateSigner() { IDigest digest = _hashAlgorithMgf.GenerateDigest(); return(new PssSigner(new RsaBlindedEngine(), digest)); }