~zooko/cryptopp/trunk

« back to all changes in this revision

Viewing changes to seal.cpp

  • Committer: weidai
  • Date: 2004-09-03 10:57:31 UTC
  • Revision ID: svn-v4:57ff6487-cd31-0410-9ec3-f628ee90f5f0:trunk/c5:193
changes related to the next FIPS validation

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
}
45
45
 
46
46
template <class B>
47
 
void SEAL_Policy<B>::CipherSetKey(const NameValuePairs &params, const byte *key, size_t length)
 
47
void SEAL_Policy<B>::CipherSetKey(const NameValuePairs &params, const byte *key, unsigned int length)
48
48
{
49
49
        m_insideCounter = m_outsideCounter = m_startCount = 0;
50
50
 
82
82
}
83
83
 
84
84
template <class B>
85
 
void SEAL_Policy<B>::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount)
 
85
void SEAL_Policy<B>::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, unsigned int iterationCount)
86
86
{
87
87
        KeystreamOutput<B> keystreamOutput(operation, output, input);
88
88
        word32 a, b, c, d, n1, n2, n3, n4;
89
89
        unsigned int p, q;
90
90
 
91
 
        for (size_t iteration = 0; iteration < iterationCount; ++iteration)
 
91
        for (unsigned int iteration = 0; iteration < iterationCount; ++iteration)
92
92
        {
93
93
#define Ttab(x) *(word32 *)((byte *)m_T.begin()+x)
94
94