internal ProviderAlgorithm(ICspAlgorithm alg) { Name = alg.Name; LongName = alg.LongName; AlgorithmType = (AlgorithmTypeEnum)alg.Type; AlgorithmOperations = (AlgorithmOperationsEnum)alg.Operations; DefaultLength = alg.DefaultLength; MinLength = alg.MinLength; MaxLength = alg.MaxLength; IncrementLength = alg.IncrementLength; IsValid = alg.Valid; }
internal CspProviderAlgorithmInfo(ICspAlgorithm alg) { Name = alg.Name; LongName = alg.LongName; AlgorithmType = (AlgorithmTypeEnum)alg.Type; AlgorithmOperations = (AlgorithmOperationsEnum)alg.Operations; DefaultLength = alg.DefaultLength; MinLength = alg.MinLength; MaxLength = alg.MaxLength; IncrementLength = alg.IncrementLength; IsValid = alg.Valid; CryptographyUtils.ReleaseCom(alg); }