예제 #1
0
        public static int HashSHA384(ReadOnlySpan <byte> src, Span <byte> dest)
        {
            using SHA384 sha = SHA384.Create();

            if (sha.TryComputeHash(src, dest, out int ret) == false)
            {
                throw new ApplicationException("TryComputeHash error.");
            }

            return(ret);
        }