2 // System.Security.Cryptography KeySizes Class implementation
\r
5 // Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu)
\r
7 // Copyright 2001 by Matthew S. Ford.
\r
11 namespace System.Security.Cryptography {
\r
14 /// This class represents valid ranges of key sizes for ciphers. It is also used to represent block sizes in the same fashion for block ciphers.
\r
16 public class KeySizes {
\r
17 private int _maxSize;
\r
18 private int _minSize;
\r
19 private int _skipSize;
\r
22 /// Creates a new KeySizes object.
\r
24 /// <param name="minSize">The minimum size key allowed for this cipher.</param>
\r
25 /// <param name="maxSize">The maximum size key allowed for this cipher.</param>
\r
26 /// <param name="skipSize">The jump/skip between the valid key sizes.</param>
\r
27 public KeySizes (int minSize, int maxSize, int skipSize) {
\r
30 _skipSize = skipSize;
\r
34 /// Returns the maximum valid key size;
\r
36 public int MaxSize {
\r
43 /// Returns the minimum valid key size;
\r
45 public int MinSize {
\r
52 /// Returns the skip between valid key sizes;
\r
54 public int SkipSize {
\r