Exemple #1
0
        public static void GenerateSha256Hash(ReadOnlySpan <byte> data, Span <byte> hashBuffer)
        {
            var sha256 = new Sha256Impl();

            sha256.Initialize();

            sha256.Update(data);
            sha256.GetHash(hashBuffer);
        }
Exemple #2
0
 public Sha256Generator()
 {
     _baseHash = new Sha256Impl();
 }