<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0-beta.98" />

Org.BouncyCastle.Security.DigestUtilities

public static class DigestUtilities
namespace Org.BouncyCastle.Security { public static class DigestUtilities { public static byte[] CalculateDigest(DerObjectIdentifier id, byte[] input); public static byte[] CalculateDigest(string algorithm, byte[] input); public static byte[] CalculateDigest(string algorithm, byte[] buf, int off, int len); public static byte[] DoFinal(IDigest digest); public static byte[] DoFinal(IDigest digest, byte[] input); public static byte[] DoFinal(IDigest digest, byte[] buf, int off, int len); public static string GetAlgorithmName(DerObjectIdentifier oid); public static IDigest GetDigest(DerObjectIdentifier id); public static IDigest GetDigest(string algorithm); public static DerObjectIdentifier GetObjectIdentifier(string mechanism); } }