new module: md5 with substitution
#10
(05-18-2022, 02:18 AM)nick8606 Wrote: sizeof(w)==256, too short for your task. It's needed to use new local array for data after replacing.




3rd parameter of md5_update_vector() is data size. All this size is processed.

thank you.

would you have a short example code showing how to md5 an input string of fixed length 200 char?

multiple calls of md5_update_vector() one after another?

Code:
md5_update (&ctx, w[0], 64);
md5_update (&ctx, w[64], 64);
md5_update (&ctx, w[128], 64);
md5_update (&ctx, w[192], 8);  /* for the 8 remaining char, should i pad it to 64 dwords */

should i split it by blocks of 64 dwords?

thanks
Reply


Messages In This Thread
new module: md5 with substitution - by phaphip - 05-09-2022, 07:22 PM
RE: new module: md5 with substitution - by phaphip - 05-18-2022, 03:39 PM