#include <revolution/net.h>
#define NET_MD5_DIGEST_SIZE 16
#define NET_SHA1_DIGEST_SIZE 20
#define NET_HASH_BLOCK_SIZE 64
The following is a list of hash algorithms supported by the NET library.
| Algorithms | Block size | Hash length | Defined value for the hash length (byte size) | Context structure | Comments |
| MD5 | 512-bit | 128-bit | NET_MD5_DIGEST_SIZE (= 16) | NETMD5Context | This algorithm is used to find the message digest value. For details, see RFC (Request For Comments) 1321, which is published by the IETF (Internet Engineering Task Force). |
| SHA-1 | 512-bit | 160-bit | NET_SHA1_DIGEST_SIZE (= 20) | NETSHA1Context | This algorithm is used to find the message digest value. For details, see RFC (Request for Comments) 3174, which is published by the IETF (Internet Engineering Task Force). |
NETCalcMD5 NETCalcSHA1 NETCalcHMACMD5 NETCalcHMACSHA1
2006/09/01 Initial version.
CONFIDENTIAL