Ignore:
Timestamp:
Feb 26, 2010, 1:12:45 PM (12 years ago)
Author:
Sven Rech
Message:

speed optimization for CFB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NativeCryptography/NativeCryptography.h

    r1196 r1198  
    44#include <stdlib.h>
    55
     6using namespace System::Threading;
    67using namespace System;
    78
     
    1213        private:
    1314                enum class cryptMethod {methodAES, methodDES};
    14                
     15
     16                //for optimization:
     17                static array<unsigned char>^ lastIV = nullptr;         
     18                static array<unsigned char>^ zeroIV8 = gcnew array<unsigned char>(8);
     19                static array<unsigned char>^ zeroIV16 = gcnew array<unsigned char>(16);
     20                static Mutex^ lastivmutex = gcnew Mutex();
     21
    1522                static void xorBlockAES(int *t1, int *t2);
    1623                static void xorBlockDES(int *t1, int *t2);
Note: See TracChangeset for help on using the changeset viewer.