Ignore:
Timestamp:
Dec 16, 2008, 8:48:44 AM (13 years ago)
Author:
Gerhard Junker
Message:

Plugin URLs filled
Source comments - references added
twofish partial added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Whirlpool/WhirlpoolPlugin.cs

    r142 r155  
    1111//////////////////////////////////////////////////////////////////////////////////////////////////
    1212
     13// The Whirlpool algorithm was developed by
     14// Paulo S. L. M. Barreto and Vincent Rijmen</a>.
     15//
     16// This implementation is based on the reference implementation found at
     17// http://www.larc.usp.br/~pbarreto/whirlpool.zip
     18// .. and moved from C to C#
     19
     20// Read more at
     21// http://en.wikipedia.org/wiki/Whirlpool_(cryptography)
     22// http://de.wikipedia.org/wiki/Whirlpool_(Algorithmus)
     23// http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html
     24
     25
     26 
    1327using System;
    1428using System.Collections.Generic;
     
    2640{
    2741  [Author("Gerhard Junker", null, "private project member", null)]
    28   [PluginInfo(false, "Whirlpool", "Whirlpool hash function", "", "Whirlpool/Whirlpool1.png")]
     42  [PluginInfo(false, "Whirlpool", "Whirlpool hash function",
     43    "http://en.wikipedia.org/wiki/Whirlpool_(cryptography)", "Whirlpool/Whirlpool1.png")]
    2944  public class WPHash : IHash
    3045  {
     
    8398    private static byte[] empty = { };
    8499    private byte[] input = empty;
    85     private dataCanal inputCanal = dataCanal.none;
     100    //private dataCanal inputCanal = dataCanal.none;
    86101
    87102    /// <summary>
     
    109124      set
    110125      {
    111         if (inputCanal != dataCanal.none && inputCanal != dataCanal.streamCanal)
    112           GuiLogMessage("Duplicate input key not allowed!", NotificationLevel.Error);
    113         inputCanal = dataCanal.streamCanal;
     126        //if (inputCanal != dataCanal.none && inputCanal != dataCanal.streamCanal)
     127        //  GuiLogMessage("Duplicate input key not allowed!", NotificationLevel.Error);
     128        //inputCanal = dataCanal.streamCanal;
    114129
    115130        if (null == value)
     
    141156      set
    142157      {
    143         if (inputCanal != dataCanal.none && inputCanal != dataCanal.byteCanal)
    144           GuiLogMessage("Duplicate input data not allowed!", NotificationLevel.Error);
    145         inputCanal = dataCanal.byteCanal;
     158        //if (inputCanal != dataCanal.none && inputCanal != dataCanal.byteCanal)
     159        //  GuiLogMessage("Duplicate input data not allowed!", NotificationLevel.Error);
     160        //inputCanal = dataCanal.byteCanal;
    146161
    147162        if (null == value)
Note: See TracChangeset for help on using the changeset viewer.