MCPcopy Create free account
hub / github.com/LUX-Core/lux / UncheckedSetKey

Method UncheckedSetKey

src/cryptopp/modes.cpp:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void BlockOrientedCipherModeBase::UncheckedSetKey(const byte *key, unsigned int length, const NameValuePairs &params)
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
163void BlockOrientedCipherModeBase::ResizeBuffers()
164{

Callers

nothing calls this directly

Calls 3

IsResynchronizableFunction · 0.85
ResynchronizeFunction · 0.70
SetKeyMethod · 0.45

Tested by

no test coverage detected