<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Digests.ShortenedDigest

public class ShortenedDigest : IDigest
Wrapper class that reduces the output length of a particular digest to only the first n bytes of the digest function.
namespace Org.BouncyCastle.Crypto.Digests { public class ShortenedDigest : IDigest { public string AlgorithmName { get; } public ShortenedDigest(IDigest baseDigest, int length); public int GetDigestSize(); public void Update(byte input); public void BlockUpdate(byte[] input, int inOff, int inLen); public void BlockUpdate(ReadOnlySpan<byte> input); public int DoFinal(byte[] output, int outOff); public int DoFinal(Span<byte> output); public void Reset(); public int GetByteLength(); } }