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

            var keySizes = _config.GetKeySizes();

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