示例#1
0
        /// <summary>
        /// Generate the hash.
        /// </summary>
        /// <remarks>
        /// Generates the hash.
        /// </remarks>
        /// <returns>The hash.</returns>
        public byte[] GenerateHash()
        {
#if ENABLE_NATIVE_DKIM
            digest.TransformFinalBlock(new byte[0], 0, 0);

            return(digest.Hash);
#else
            var hash = new byte[digest.GetDigestSize()];

            digest.DoFinal(hash, 0);

            return(hash);
#endif
        }