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

Last change on this file since 1121 was 1121, checked in by kohnen, 12 years ago
  • deleted setInput-function from IControlEncryption and all Plugins using IControlEncryption
  • some changes at TranspositionAnalyser plugin & Settings
  • new TranspositionAnalyser sample
File size: 1.4 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        [Obsolete("This signature doesn't pass the ciphertext, use Decrypt(byte[], byte[]) instead")]
35        byte[] Decrypt(byte[] key, int blocksize);
36    }
37}
Note: See TracBrowser for help on using the repository browser.