16 lines
364 B
C#
16 lines
364 B
C#
using Org.BouncyCastle.Crypto.Digests;
|
|
|
|
namespace FrostFS.SDK.Cryptography;
|
|
|
|
public static class Extentions
|
|
{
|
|
internal static byte[] RIPEMD160(this byte[] value)
|
|
{
|
|
var hash = new byte[20];
|
|
|
|
var digest = new RipeMD160Digest();
|
|
digest.BlockUpdate(value, 0, value.Length);
|
|
digest.DoFinal(hash, 0);
|
|
return hash;
|
|
}
|
|
}
|