Skip to content

Commit 5210bf0

Browse files
committed
Corrected comment about digest input size
1 parent 8103815 commit 5210bf0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ArduinoCore-Linux/cores/arduino/MD5Builder.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,9 @@ bool MD5Builder::addStream(Stream &stream, const size_t maxLen) {
266266
}
267267

268268
/*
269-
* Pad the current input to get to 448 bytes, append the size in bits to the very end,
270-
* and save the result of the final iteration into digest.
269+
* Pad the current input so its length is congruent to 448 bits (56 bytes) modulo 512 bits,
270+
* then append the size in bits to the very end, and save the result of the final iteration
271+
* into digest.
271272
*/
272273
void MD5Builder::calculate(void) {
273274
uint32_t input[16];

0 commit comments

Comments
 (0)