RFC Errata


Errata Search

 
Source of RFC  
Summary Table Full Records

RFC 1321, "The MD5 Message-Digest Algorithm", April 1992

Note: This RFC has been updated by RFC 6151

Source of RFC: pem (sec)

Errata ID: 6193
Status: Held for Document Update
Type: Technical
Publication Format(s) : TEXT

Reported By: User
Date Reported: 2020-05-29
Held for Document Update by: Paul Wouters
Date Held: 2024-01-12

Section A.4 says:

  printf
 ("Speed = %ld bytes/second\n",
  (long)TEST_BLOCK_LEN * (long)TEST_BLOCK_COUNT/(endTime-startTime));

It should say:

 if(endTime-startTime)
 printf
 ("Speed = %ld bytes/second\n",
  (long)TEST_BLOCK_LEN * (long)TEST_BLOCK_COUNT/(endTime-startTime));

Notes:

The result of endTime-startTime may be zero. The result is a division by zero. This check prevents this.

AD Note: Technically endTime-startTime is not a bool, so a better fix would be:
if ((endTime-startTime) !=0)

Report New Errata



Advanced Search