source: trunk/CrypPluginBase/Control/IControlEncryption.cs @ 1157

Last change on this file since 1157 was 1157, checked in by Arno Wacker, 12 years ago

AnotherEditor

  • Yet another Invoke during a single log message changed into BeginInvoke

IControlEncryption

  • Removed obsolete signature

CryptoolStream

  • Added a try-catch when deleting a file. An exception occurs when the file is locked. Clearly, in this case there not much one can do.. the file remains on the disk. Waiting for CStream...

AES, DES, SDES

  • Cleanup of IControl interface and general code cleanup
  • Fixed compatibility with KeySearcher - now all three should work again. (However, kind of slow)

StreamToStringConverter

  • Updated license

Sample update

  • KeySearcher-Sample-DES.cte, KeySearcher-Sample-DES.cte, KeySearcher-Sample-SDES.cte: Compatibility with IControl changes and slight rearrangement.
  • P2P-DES-BruteforceManger.cte, P2P-DES-BruteforceWorker.cte: Compatibility

New binaries

  • CrypWin.exe
  • AnotherEditor.dll
File size: 1.2 KB
Line 
1/*
2   Copyright 2009 Thomas Schmid
3
4   Licensed under the Apache License, Version 2.0 (the "License");
5   you may not use this file except in compliance with the License.
6   You may obtain a copy of the License at
7
8       http://www.apache.org/licenses/LICENSE-2.0
9
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15*/
16
17using System;
18using System.Collections.Generic;
19using System.Linq;
20using System.Text;
21
22namespace Cryptool.PluginBase.Control
23{
24    public interface IControlEncryption : IControl, IDisposable
25    {
26        byte[] Encrypt(byte[] key, int blocksize);
27        byte[] Decrypt(byte[] ciphertext, byte[] key);
28        string getKeyPattern();
29        byte[] getKeyFromString(string key, ref int[] arrayPointers, ref int[] arraySuccessors, ref int[] arrayUppers);
30        void changeSettings(string setting, object value);
31        IControlEncryption clone();
32        event KeyPatternChanged keyPatternChanged;
33    }
34}
Note: See TracBrowser for help on using the repository browser.