Beispiel #1
0
        public override void SetHashAlgorithm(string strName)
        {
            if (strName == null)
            {
                throw new ArgumentNullException("strName");
            }

            var instance = PKCS1.CreateFromName(strName) as SHA1;

            if (instance == null)
            {
                throw new CryptographicUnexpectedOperationException(Locale.GetText("DSA requires SHA1"));
            }
        }