Changeset 84 for trunk/CrypPlugins/TEA


Ignore:
Timestamp:
Dec 1, 2008, 1:14:02 PM (13 years ago)
Author:
Sören Rinne
Message:
  • small changes on Plugin TEA
  • replaced the TEA Sample
Location:
trunk/CrypPlugins/TEA
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/TEA/DetailedDescription/Description.xaml

    r4 r84  
    1414  </Paragraph>
    1515  <Paragraph>
    16       <Run FontSize="14.6666666666667" xml:lang="de-de">TEA operates on 64-bit blocks and uses a 128-bit key. It has a Feistel structure with a suggested 64 rounds, typically implemented in pairs termed cycles. It has an extremely simple key schedule, mixing all of the key material in exactly the same way for each cycle. Different multiples of a magic constant are used to prevent simple attacks based on the symmetry of the rounds. The magic constant, 2654435769 or 9E3779B916 is chosen to be (2^32 / phi) where phi is the golden ratio.</Run>
     16      <Run FontSize="14.6666666666667" xml:lang="de-de">TEA operates on 64-bit blocks and uses a 128-bit key. It has a Feistel structure with a suggested 64 rounds, typically implemented in pairs termed cycles. It has an extremely simple key schedule, mixing all of the key material in exactly the same way for each cycle. Different multiples of a magic constant are used to prevent simple attacks based on the symmetry of the rounds. The magic constant, 2654435769 (Decimal) or 9E3779B9 (Hex) is chosen to be (2^32 / phi) where phi is the golden ratio.</Run>
    1717  </Paragraph>
    1818</FlowDocument>
  • trunk/CrypPlugins/TEA/TEA.cs

    r4 r84  
    1515namespace Cryptool.TEA
    1616{
    17     [Author("Soeren Rinne", "soeren.rinne@cryptool.de", "Ruhr-Universitaet Bochum", "http://www.ruhr-uni-bochum.de")]
     17    [Author("Soeren Rinne", "soeren.rinne@cryptool.de", "Ruhr-Universitaet Bochum, Chair for Embedded Security (EmSec)", "http://www.crypto.ruhr-uni-bochum.de/")]
    1818    [PluginInfo(false, "TEA", "Tiny Encryption Algorithm", "TEA/DetailedDescription/Description.xaml", "TEA/Images/tea.png", "TEA/Images/encrypt.png", "TEA/Images/decrypt.png")]
    1919    [EncryptionType(EncryptionType.SymmetricBlock)]
     
    2626        private CryptoolStream outputStream;
    2727        private byte[] inputKey;
    28         private CryptoolStream p_crypto_stream;
    2928        private bool stop = false;
    3029        private List<CryptoolStream> listCryptoolStreamsOut = new List<CryptoolStream>();
     
    125124                }
    126125                listCryptoolStreamsOut.Clear();
    127 
    128                 if (p_crypto_stream != null)
    129                 {
    130                     p_crypto_stream.Flush();
    131                     p_crypto_stream.Close();
    132                     p_crypto_stream = null;
    133                 }
    134126            }
    135127            catch (Exception ex)
     
    309301
    310302                long outbytes = outputStream.Length;
    311                 //p_crypto_stream.Flush();
    312                 //p_crypto_stream.Close();
    313303                DateTime stopTime = DateTime.Now;
    314304                TimeSpan duration = stopTime - startTime;
Note: See TracChangeset for help on using the changeset viewer.