X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=doc%2Fcrypto%2Fmdc2.pod;h=f7db71b460d3eeaa3be5100d361c137a1b02bdfd;hp=1deeb7f582b24a48268083565c6c9265fb223985;hb=05ea606a2536590e1ef74020056665345f39efa8;hpb=9dbc41d7eed7d69da54dc81082794845c50ad482 diff --git a/doc/crypto/mdc2.pod b/doc/crypto/mdc2.pod index 1deeb7f582..f7db71b460 100644 --- a/doc/crypto/mdc2.pod +++ b/doc/crypto/mdc2.pod @@ -11,10 +11,10 @@ MDC2, MDC2_Init, MDC2_Update, MDC2_Final - MDC2 hash function unsigned char *MDC2(const unsigned char *d, unsigned long n, unsigned char *md); - void MDC2_Init(MDC2_CTX *c); - void MDC2_Update(MDC2_CTX *c, const unsigned char *data, + int MDC2_Init(MDC2_CTX *c); + int MDC2_Update(MDC2_CTX *c, const unsigned char *data, unsigned long len); - void MDC2_Final(unsigned char *md, MDC2_CTX *c); + int MDC2_Final(unsigned char *md, MDC2_CTX *c); =head1 DESCRIPTION @@ -38,11 +38,15 @@ be hashed (B bytes at B). MDC2_Final() places the message digest in B, which must have space for MDC2_DIGEST_LENGTH == 16 bytes of output, and erases the B. +Applications should use the higher level functions +L etc. instead of calling the +hash functions directly. + =head1 RETURN VALUES -MDC2() returns a pointer to the hash value. +MDC2() returns a pointer to the hash value. -MDC2_Init(), MDC2_Update() and MDC2_Final() do not return values. +MDC2_Init(), MDC2_Update() and MDC2_Final() return 1 for success, 0 otherwise. =head1 CONFORMING TO @@ -50,11 +54,15 @@ ISO/IEC 10118-2, with DES =head1 SEE ALSO -L +L + +=head1 COPYRIGHT -=head1 HISTORY +Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. -MDC2(), MDC2_Init(), MDC2_Update() and MDC2_Final() are available since -SSLeay 0.8. +Licensed under the OpenSSL license (the "License"). You may not use +this file except in compliance with the License. You can obtain a copy +in the file LICENSE in the source distribution or at +L. =cut