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

Method TransformRegister

src/cryptopp/modes.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void 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
67void CFB_ModePolicy::CipherResynchronize(const byte *iv, size_t length)
68{

Callers 1

ProcessDataMethod · 0.80

Calls 6

memmove_sFunction · 0.85
memcpy_sFunction · 0.85
ProcessBlockMethod · 0.80
BlockSizeFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected