Beispiel #1
0
            public ICipherBuilder <A> CreateDecryptorBuilder <A>(A algorithmDetails) where A : IParameters <Algorithm>
            {
                CryptoServicesRegistrar.ApprovedModeCheck(approvedOnlyMode, "Service");

                ValidateKeyUse(keyAlg, keyBytes, algorithmDetails.Algorithm, true);

                if (algorithmDetails is TripleDes.ParametersWithIV)
                {
                    CryptoServicesRegistrar.GeneralModeCheck(approvedOnlyMode, algorithmDetails.Algorithm);

                    return(((IDecryptorBuilderProvider <A>)genProvForIV).CreateDecryptorBuilder(algorithmDetails));
                }
                return(((IDecryptorBuilderProvider <A>)prov).CreateDecryptorBuilder(algorithmDetails));
            }