| 149 | } |
| 150 | |
| 151 | void BlockOrientedCipherModeBase::UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs ¶ms) |
| 152 | { |
| 153 | m_cipher->SetKey(key, length, params); |
| 154 | ResizeBuffers(); |
| 155 | if (IsResynchronizable()) |
| 156 | { |
| 157 | size_t ivLength; |
| 158 | const byte *iv = GetIVAndThrowIfInvalid(params, ivLength); |
| 159 | Resynchronize(iv, (int)ivLength); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | void BlockOrientedCipherModeBase::ResizeBuffers() |
| 164 | { |
nothing calls this directly
no test coverage detected