Beispiel #1
0
 private void UpdateBlockComboBox()
 {
     _blockModeComboBox.Clear();
     _blockModeComboBox.AddRange(_inputLength > 15
         ? _config.GetValidBlockModes()
         : _config.GetValidBlockModes(BlockMode.CTS));
     _blockModeComboBox.SelectFirstItem();
 }
Beispiel #2
0
        private void UpdateKeySizeComboBox()
        {
            _cipherKeyLengthComboBox.Clear();

            var keySizes = _config.GetKeySizes();

            _cipherKeyLengthComboBox.AddRange(keySizes.Select(keySize => $"{Convert.ToString(keySize)} bit"));
            _cipherKeyLengthComboBox.SelectFirstItem();
        }
Beispiel #3
0
 private void UpdateIntegrityOptions()
 {
     _integritySpecComboBox.Clear();
     _integritySpecComboBox.AddRange(_config.GetIntegrityOptions());
     _integritySpecComboBox.SelectFirstItem();
 }
Beispiel #4
0
 private void UpdatePaddingComboBox()
 {
     _paddingComboBox.Clear();
     _paddingComboBox.AddRange(_config.GetValidPaddings());
     _paddingComboBox.SelectFirstItem();
 }
Beispiel #5
0
 private void UpdateCipherAlgorithm()
 {
     _cipherAlgorithmComboBox.Clear();
     _cipherAlgorithmComboBox.AddRange(_config.GetValidAlgorithms());
     _cipherAlgorithmComboBox.SelectFirstItem();
 }