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

Method Resynchronize

src/cryptopp/authenc.cpp:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void AuthenticatedSymmetricCipherBase::Resynchronize(const byte *iv, int length)
63{
64 if (m_state < State_KeySet)
65 throw BadState(AlgorithmName(), "Resynchronize", "key is set");
66
67 m_bufferedDataLength = 0;
68 m_totalHeaderLength = m_totalMessageLength = m_totalFooterLength = 0;
69 m_state = State_KeySet;
70
71 Resync(iv, this->ThrowIfInvalidIVLength(length));
72 m_state = State_IVSet;
73}
74
75void AuthenticatedSymmetricCipherBase::Update(const byte *input, size_t length)
76{

Callers

nothing calls this directly

Calls 2

AlgorithmNameFunction · 0.70

Tested by

no test coverage detected