• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/libcryptoxx-5.6.0/

Lines Matching defs:policy

14 	PolicyInterface &policy = this->AccessPolicy();
15 policy.CipherSetKey(params, key, length);
17 unsigned int bufferByteSize = policy.CanOperateKeystream() ? GetBufferByteSize(policy) : RoundUpToMultipleOf(1024U, GetBufferByteSize(policy));
24 policy.CipherResynchronize(m_buffer, iv, ivLength);
44 PolicyInterface &policy = this->AccessPolicy();
45 unsigned int bytesPerIteration = policy.GetBytesPerIteration();
50 policy.WriteKeystream(outString, iterations);
60 policy.WriteKeystream(KeystreamBufferEnd()-bufferByteSize, bufferIterations);
83 PolicyInterface &policy = this->AccessPolicy();
84 unsigned int bytesPerIteration = policy.GetBytesPerIteration();
86 if (policy.CanOperateKeystream() && length >= bytesPerIteration)
89 unsigned int alignment = policy.GetAlignment();
92 policy.OperateKeystream(operation, outString, inString, iterations);
107 policy.WriteKeystream(m_buffer, bufferIterations);
119 policy.WriteKeystream(KeystreamBufferEnd()-bufferByteSize, bufferIterations);
128 PolicyInterface &policy = this->AccessPolicy();
130 m_buffer.New(GetBufferByteSize(policy));
131 policy.CipherResynchronize(m_buffer, iv, this->ThrowIfInvalidIVLength(length));
137 PolicyInterface &policy = this->AccessPolicy();
138 unsigned int bytesPerIteration = policy.GetBytesPerIteration();
140 policy.SeekToIteration(position / bytesPerIteration);
145 policy.WriteKeystream(KeystreamBufferEnd()-bytesPerIteration, 1);
155 PolicyInterface &policy = this->AccessPolicy();
156 policy.CipherSetKey(params, key, length);
162 policy.CipherResynchronize(iv, ivLength);
165 m_leftOver = policy.GetBytesPerIteration();
171 PolicyInterface &policy = this->AccessPolicy();
172 policy.CipherResynchronize(iv, this->ThrowIfInvalidIVLength(length));
173 m_leftOver = policy.GetBytesPerIteration();
181 PolicyInterface &policy = this->AccessPolicy();
182 unsigned int bytesPerIteration = policy.GetBytesPerIteration();
183 unsigned int alignment = policy.GetAlignment();
184 byte *reg = policy.GetRegisterBegin();
201 if (policy.CanIterate() && length >= bytesPerIteration && IsAlignedOn(outString, alignment))
204 policy.Iterate(outString, inString, GetCipherDir(*this), length / bytesPerIteration);
208 policy.Iterate(outString, outString, GetCipherDir(*this), length / bytesPerIteration);
217 policy.TransformRegister();
226 policy.TransformRegister();