예제 #1
0
 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;
 }
예제 #2
0
 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);
 }