| 56 | } |
| 57 | |
| 58 | void CFB_ModePolicy::TransformRegister() |
| 59 | { |
| 60 | CRYPTOPP_ASSERT(m_cipher->IsForwardTransformation()); // CFB mode needs the "encrypt" direction of the underlying block cipher, even to decrypt |
| 61 | m_cipher->ProcessBlock(m_register, m_temp); |
| 62 | unsigned int updateSize = BlockSize()-m_feedbackSize; |
| 63 | memmove_s(m_register, m_register.size(), m_register+m_feedbackSize, updateSize); |
| 64 | memcpy_s(m_register+updateSize, m_register.size()-updateSize, m_temp, m_feedbackSize); |
| 65 | } |
| 66 | |
| 67 | void CFB_ModePolicy::CipherResynchronize(const byte *iv, size_t length) |
| 68 | { |
no test coverage detected