Manual Pages for UNIX Darwin command on man CC_MD5_Init
MyWebUniversity

Manual Pages for UNIX Darwin command on man CC_MD5_Init

CCMD5(3cc) LOCAL CCMD5(3cc)

NAME

CCCCMMDD22IInniitt CCCCMMDD22UUppddaattee CCCCMMDD22FFiinnaall CCCCMMDD22 CCCCMMDD44IInniitt CCCCMMDD44UUppddaattee CCCCMMDD44FFiinnaall CCCCMMDD44 CCCCMMDD55IInniitt CCCCMMDD55UUppddaattee CCCCMMDD55FFiinnaall CCCCMMDD55

- MD2, MD4, and MD5 hash functions

SYNOPSIS

##iinncclluuddee <>

extern int CCCCMMDD22IInniitt(CCMD2CTX *c); extern int CCCCMMDD22UUppddaattee(CCMD2CTX *c, const void *data, CCLONG len); extern int CCCCMMDD22FFiinnaall(unsigned char *md, CCMD2CTX *c); extern unsigned char * CCCCMMDD22(const void *data, CCLONG len, unsigned char *md); extern int CCCCMMDD44IInniitt(CCMD4CTX *c); extern int CCCCMMDD44UUppddaattee(CCMD4CTX *c, const void *data, CCLONG len); extern int CCCCMMDD44FFiinnaall(unsigned char *md, CCMD4CTX *c); extern unsigned char * CCCCMMDD44(const void *data, CCLONG len, unsigned char *md); extern int CCCCMMDD55IInniitt(CCMD5CTX *c); extern int CCCCMMDD55UUppddaattee(CCMD5CTX *c, const void *data, CCLONG len); extern int CCCCMMDD55FFiinnaall(unsigned char *md, CCMD5CTX *c); extern unsigned char * CCCCMMDD55(const void *data, CCLONG len, unsigned char *md);

DESCRIPTION

The following functions are used to produce an hash from data: CCCCMMDD22IInniitt() initializes a CCMD2CTX structure. CCCCMMDD22UUppddaattee() can be called repeatedly with chunks of the message to be hashed (len bytes at data). CCCCMMDD22FFiinnaall() places the MD2 message digest in md, which must have space for CCMD2DIGESTLENGTH == 16 bytes of output, and erases the CCMD2CTX. CCCCMMDD22() computes the MD2 message digest of the len bytes at data and places it in md (which must have space for CCMD2DIGESTLENGTH == 16 bytes of output). It returns the md pointer. CCCCMMDD44IInniitt(), CCCCMMDD44UUppddaattee(), CCCCMMDD44FFiinnaall(), CCCCMMDD44(), CCCCMMDD55IInniitt(), CCCCMMDD55UUppddaattee(), CCCCMMDD55FFiinnaall(), and CCCCMMDD55() are analogous using an CCMD4CTX and CCMD5CTX structure. NNOOTTEE MD2, MD4, and MD5 are recommended only for compatibility with existing

applications. In new applications, SHA-256(or greater) should be pre-

ferred.

RETURN VALUES

All routines return 1 except for the one-shot routines ( CCCCMMDD22() ,

etc.), which return the pointer passed in via the md parameter. CCOONNFFOORRMMIINNGG TTOO RFC 1319, RFC 1320, RFC 1321

SEE ALSO

CCcrypto(3cc), CCSHA(3cc), CCHmac(3cc), CCCryptor(3cc) HISTORY These functions are available in OS X 10.4 and later. These functions provide similar functionality to the routines found in OpenSSL 0.9.6 and may use the same implementation. BSD April 5, 2007 BSD




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