| 60 | } |
| 61 | |
| 62 | void 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 | |
| 75 | void AuthenticatedSymmetricCipherBase::Update(const byte *input, size_t length) |
| 76 | { |
nothing calls this directly
no test coverage detected