#include <revolution/net.h>
#define NET_MD5_DIGEST_SIZE 16
#define NET_SHA1_DIGEST_SIZE 20
#define NET_SHA256_DIGEST_SIZE 32
#define NET_MD5_BLOCK_SIZE 64
#define NET_SHA1_BLOCK_SIZE 64
#define NET_SHA256_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, issued 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, issued by the IETF (Internet Engineering Task Force). |
| SHA-256 | 512-bit | 256-bit | NET_SHA256_DIGEST_SIZE (= 32) | NETSHA256Context | This algorithm is used to find the message digest value. For details, see RFC (Request for Comments) 4634, issued by the IETF (Internet Engineering Task Force). |
NETCalcMD5
NETCalcSHA1
NETCalcSHA256
NETCalcHMACMD5
NETCalcHMACSHA1
NETCalcHMACSHA256
2008/05/07 Added the SHA-256 algorithm.
2006/09/01 Initial version.
CONFIDENTIAL