MCPcopy Create free account
hub / github.com/attermann/microReticulum / decrypt

Method decrypt

src/microReticulum/Cryptography/CBC.cpp:113–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void CBCCommon::decrypt(uint8_t* output, const uint8_t* input, size_t len)
114{
115 uint8_t posn;
116 while (len >= 16) {
117 blockCipher->decryptBlock(temp, input);
118 for (posn = 0; posn < 16; ++posn) {
119 uint8_t in = *input++;
120 *output++ = temp[posn] ^ iv[posn];
121 iv[posn] = in;
122 }
123 len -= 16;
124 }
125}
126
127void CBCCommon::clear()
128{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected