Displaying 5 results from an estimated 5 matches for "resblock".
2020 May 01
4
Request: tools::md5sum should accept connections and finally in-memory objects
...fdef UNUSED
/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
result is always in little endian byte order, so that a byte-wise
output yields to the wanted ASCII representation of the message
digest. */
static void *
md5_buffer (const char *buffer, size_t len, void *resblock)
{
struct md5_ctx ctx;
/* Initialize the computation context. */
md5_init_ctx (&ctx);
/* Process whole buffer but last len % 64 bytes. */
md5_process_bytes (buffer, len, &ctx);
/* Put result in desired memory area. */
return md5_finish_ctx (&ctx, resblock);
}...
2008 Sep 02
0
mk5check crashed on Windows
..._file("unins000.dat"). I
guess that the file pointer didn't stop when it reached EOF.
(2) For some reason, the lastest version of "snprintf" appended '\0' to the
string, so the following line:
for(j = 0; j < 16; j++) snprintf (out+2*j, 2, "%02x", resblock[j]);
produced a (MD5) strings with '\0' at every even position.
(3) When there is no unins000.dat file, md5check.exe won't report any
missing files.
I think the last two "bugs" can be fixed by the following minor changes:
=============================
--- R-2.7.2/src/gnuwi...
2020 May 01
0
Request: tools::md5sum should accept connections and finally in-memory objects
...essage digest for LEN bytes beginning at BUFFER. The
> result is always in little endian byte order, so that a byte-wise
> output yields to the wanted ASCII representation of the message
> digest. */
> static void *
> md5_buffer (const char *buffer, size_t len, void *resblock)
> {
> struct md5_ctx ctx;
>
> /* Initialize the computation context. */
> md5_init_ctx (&ctx);
>
> /* Process whole buffer but last len % 64 bytes. */
> md5_process_bytes (buffer, len, &ctx);
>
> /* Put result in desired memory are...
2020 May 01
0
Request: tools::md5sum should accept connections and finally in-memory objects
...ute MD5 message digest for LEN bytes beginning at BUFFER. The
> result is always in little endian byte order, so that a byte-wise
> output yields to the wanted ASCII representation of the message
> digest. */
> static void *
> md5_buffer (const char *buffer, size_t len, void *resblock)
> {
> struct md5_ctx ctx;
>
> /* Initialize the computation context. */
> md5_init_ctx (&ctx);
>
> /* Process whole buffer but last len % 64 bytes. */
> md5_process_bytes (buffer, len, &ctx);
>
> /* Put result in desired memory area. */
> retur...
2020 May 01
1
Request: tools::md5sum should accept connections and finally in-memory objects
...st for LEN bytes beginning at BUFFER. ?The
>> ??result is always in little endian byte order, so that a byte-wise
>> ??output yields to the wanted ASCII representation of the message
>> ??digest. ?*/
>> static void *
>> md5_buffer (const char *buffer, size_t len, void *resblock)
>> {
>> ?struct md5_ctx ctx;
>>
>> ?/* Initialize the computation context. ?*/
>> ?md5_init_ctx (&ctx);
>>
>> ?/* Process whole buffer but last len % 64 bytes. ?*/
>> ?md5_process_bytes (buffer, len, &ctx);
>>
>> ?/* Put result in...