//
// System.Security.Cryptography KeySizes Class implementation
//
// Author:
// Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu)
//
// Copyright 2001 by Matthew S. Ford.
//
namespace System.Security.Cryptography {
///
/// 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.
///
public class KeySizes {
private int _maxSize;
private int _minSize;
private int _skipSize;
///
/// Creates a new KeySizes object.
///
/// The minimum size key allowed for this cipher.
/// The maximum size key allowed for this cipher.
/// The jump/skip between the valid key sizes.
public KeySizes (int minSize, int maxSize, int skipSize) {
_maxSize = maxSize;
_minSize = minSize;
_skipSize = skipSize;
}
///
/// Returns the maximum valid key size;
///
public int MaxSize {
get {
return _maxSize;
}
}
///
/// Returns the minimum valid key size;
///
public int MinSize {
get {
return _minSize;
}
}
///
/// Returns the skip between valid key sizes;
///
public int SkipSize {
get {
return _skipSize;
}
}
}
}