RFC Errata


Errata Search

 
Source of RFC  
Summary Table Full Records

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

Source of RFC: pem (sec)

Errata ID: 6193
Status: Reported
Type: Technical
Publication Format(s) : TEXT

Reported By: User
Date Reported: 2020-05-29

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.

Report New Errata