Ejemplo n.º 1
0
        public override HashAlgorithm CreateHashAlgorithm(string algorithm)
        {
            if (CustomCryptoProvider != null && CustomCryptoProvider.IsSupportedAlgorithm(algorithm))
            {
                return(CustomCryptoProvider.Create(algorithm) as HashAlgorithm);
            }

            return(HashAlgorithm);
        }
Ejemplo n.º 2
0
        public override SignatureProvider CreateForVerifying(SecurityKey key, string algorithm)
        {
            CreateForVerifyingCalled = true;
            if (CustomCryptoProvider != null && CustomCryptoProvider.IsSupportedAlgorithm(algorithm, key))
            {
                return(CustomCryptoProvider.Create(algorithm, key) as SignatureProvider);
            }

            return(SignatureProvider);
        }