~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to gost.cpp

  • Committer: weidai
  • Date: 2010-06-18 01:52:34 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:485
avoid SecBlock of arrays

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        {14,  4, 13,  1,  2, 15, 11,  8,  3, 10,  6, 12,  5,  9,  0,  7 }}; 
28
28
*/
29
29
 
30
 
bool GOST::Base::sTableCalculated = false;
 
30
volatile bool GOST::Base::sTableCalculated = false;
31
31
word32 GOST::Base::sTable[4][256];
32
32
 
33
 
void GOST::Base::UncheckedSetKey(CipherDir direction, const byte *userKey, unsigned int length)
 
33
void GOST::Base::UncheckedSetKey(const byte *userKey, unsigned int length, const NameValuePairs &)
34
34
{
35
35
        AssertValidKeyLength(length);
36
36