~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to arc4.cpp

  • Committer: weidai
  • Date: 2007-05-04 15:04:58 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:328
reduce risk of random number reuse after VM rollback

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
// completely in the public domain.
8
8
 
9
9
#include "pch.h"
 
10
#define CRYPTOPP_ENABLE_NAMESPACE_WEAK
10
11
#include "arc4.h"
11
12
 
12
13
NAMESPACE_BEGIN(CryptoPP)
 
14
namespace Weak {
13
15
 
14
16
void ARC4_TestInstantiations()
15
17
{
21
23
        m_x = m_y = 0;
22
24
}
23
25
 
24
 
void ARC4_Base::UncheckedSetKey(const NameValuePairs &params, const byte *key, unsigned int keyLen, const byte *iv)
 
26
void ARC4_Base::UncheckedSetKey(const byte *key, unsigned int keyLen, const NameValuePairs &params)
25
27
{
26
28
        AssertValidKeyLength(keyLen);
27
29
 
113
115
        m_y = y;
114
116
}
115
117
 
 
118
}
116
119
NAMESPACE_END