private void UpdateBlockComboBox() { _blockModeComboBox.Clear(); _blockModeComboBox.AddRange(_inputLength > 15 ? _config.GetValidBlockModes() : _config.GetValidBlockModes(BlockMode.CTS)); _blockModeComboBox.SelectFirstItem(); }
private void UpdateKeySizeComboBox() { _cipherKeyLengthComboBox.Clear(); var keySizes = _config.GetKeySizes(); _cipherKeyLengthComboBox.AddRange(keySizes.Select(keySize => $"{Convert.ToString(keySize)} bit")); _cipherKeyLengthComboBox.SelectFirstItem(); }
private void UpdateIntegrityOptions() { _integritySpecComboBox.Clear(); _integritySpecComboBox.AddRange(_config.GetIntegrityOptions()); _integritySpecComboBox.SelectFirstItem(); }
private void UpdatePaddingComboBox() { _paddingComboBox.Clear(); _paddingComboBox.AddRange(_config.GetValidPaddings()); _paddingComboBox.SelectFirstItem(); }
private void UpdateCipherAlgorithm() { _cipherAlgorithmComboBox.Clear(); _cipherAlgorithmComboBox.AddRange(_config.GetValidAlgorithms()); _cipherAlgorithmComboBox.SelectFirstItem(); }