5 MDC2, MDC2_Init, MDC2_Update, MDC2_Final - MDC2 hash function
9 #include <openssl/mdc2.h>
11 unsigned char *MDC2(const unsigned char *d, unsigned long n,
14 void MDC2_Init(MDC2_CTX *c);
15 void MDC2_Update(MDC2_CTX *c, const unsigned char *data,
17 void MDC2_Final(unsigned char *md, MDC2_CTX *c);
21 MDC2 is a method to construct hash functions with 128 bit output from
22 block ciphers. These functions are an implementation of MDC2 with
25 MDC2() computes the MDC2 message digest of the B<n>
26 bytes at B<d> and places it in B<md> (which must have space for
27 MDC2_DIGEST_LENGTH == 16 bytes of output). If B<md> is NULL, the digest
28 is placed in a static array.
30 The following functions may be used if the message is not completely
33 MDC2_Init() initializes a B<MDC2_CTX> structure.
35 MDC2_Update() can be called repeatedly with chunks of the message to
36 be hashed (B<len> bytes at B<data>).
38 MDC2_Final() places the message digest in B<md>, which must have space
39 for MDC2_DIGEST_LENGTH == 16 bytes of output, and erases the B<MDC2_CTX>.
43 MDC2() returns a pointer to the hash value.
45 MDC2_Init(), MDC2_Update() and MDC2_Final() do not return values.
47 Applications should use the higher level functions EVP_DigestInit(3) etc.
48 instead of calling the hash functions directly.
52 ISO/IEC 10118-2, with DES
56 L<sha(3)|sha(3)>, L<EVP_DigestInit(3)|EVP_DigestInit(3)>
60 MDC2(), MDC2_Init(), MDC2_Update() and MDC2_Final() are available since