Manual Pages for UNIX Darwin command on man MD5_Init
MyWebUniversity

Manual Pages for UNIX Darwin command on man MD5_Init

md5(3) OpenSSL md5(3)

NAME

MD2, MD4, MD5, MD2Init, MD2Update, MD2Final, MD4Init, MD4Update,

MD4Final, MD5Init, MD5Update, MD5Final - MD2, MD4, and MD5 hash

functions

SYNOPSIS

#include

unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md); void MD2Init(MD2CTX *c); void MD2Update(MD2CTX *c, const unsigned char *data, unsigned long len); void MD2Final(unsigned char *md, MD2CTX *c);

#include

unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md); void MD4Init(MD4CTX *c); void MD4Update(MD4CTX *c, const void *data, unsigned long len); void MD4Final(unsigned char *md, MD4CTX *c);

#include

unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md); void MD5Init(MD5CTX *c); void MD5Update(MD5CTX *c, const void *data, unsigned long len); void MD5Final(unsigned char *md, MD5CTX *c);

DESCRIPTION

MD2, MD4, and MD5 are cryptographic hash functions with a 128 bit output. MD2(), MD4(), and MD5() compute the MD2, MD4, and MD5 message digest of the nn bytes at dd and place it in mmdd (which must have space for MD2DIGESTLENGTH == MD4DIGESTLENGTH == MD5DIGESTLENGTH == 16 bytes of output). If mmdd is NULL, the digest is placed in a static array. The following functions may be used if the message is not completely stored in memory: MD2Init() initializes a MMDD22CCTTXX structure. MD2Update() can be called repeatedly with chunks of the message to be hashed (lleenn bytes at ddaattaa). MD2Final() places the message digest in mmdd, which must have space for MD2DIGESTLENGTH == 16 bytes of output, and erases the MMDD22CCTTXX. MD4Init(), MD4Update(), MD4Final(), MD5Init(), MD5Update(), and MD5Final() are analogous using an MMDD44CCTTXX and MMDD55CCTTXX structure. Applications should use the higher level functions EVPDigestInit(3) etc. instead of calling the hash functions directly. NNOOTTEE MD2, MD4, and MD5 are recommended only for compatibility with existing

applications. In new applications, SHA-1 or RIPEMD-160 should be

preferred.

RETURN VALUES

MD2(), MD4(), and MD5() return pointers to the hash value. MD2Init(), MD2Update(), MD2Final(), MD4Init(), MD4Update(), MD4Final(), MD5Init(), MD5Update(), and MD5Final() do not return values. CCOONNFFOORRMMIINNGG TTOO RFC 1319, RFC 1320, RFC 1321

SEE ALSO

sha(3), ripemd(3), EVPDigestInit(3) HISTORY MD2(), MD2Init(), MD2Update() MD2Final(), MD5(), MD5Init(), MD5Update() and MD5Final() are available in all versions of SSLeay and OpenSSL. MD4(), MD4Init(), and MD4Update() are available in OpenSSL 0.9.6 and above.

0.9.7l 2000-08-14 md5(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™