3 * ====================================================================
4 * Copyright (c) 2000-2004 CollabNet. All rights reserved.
6 * This software is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at http://subversion.tigris.org/license-1.html.
9 * If newer versions of this license are posted there, you may use a
10 * newer version instead, at your option.
12 * This software consists of voluntary contributions made by many
13 * individuals. For exact contribution history, see the revision
14 * history and logs, available at http://subversion.tigris.org/.
15 * ====================================================================
19 * @brief Converting and comparing MD5 checksums.
25 #include <apr_pools.h>
27 #include "svn_error.h"
28 #include "svn_pools.h"
32 #endif /* __cplusplus */
36 /** The MD5 digest for the empty string. */
37 const unsigned char *svn_md5_empty_string_digest(void);
40 /** Return the hex representation of @a digest, which must be
41 * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
43 const char *svn_md5_digest_to_cstring_display(const unsigned char digest
[],
47 /** Return the hex representation of @a digest, which must be
48 * @c APR_MD5_DIGESTSIZE bytes long, allocating the string in @a pool.
49 * If @a digest is all zeros, then return NULL.
51 const char *svn_md5_digest_to_cstring(const unsigned char digest
[],
55 /** Compare digests @a d1 and @a d2, each @c APR_MD5_DIGESTSIZE bytes long.
56 * If neither is all zeros, and they do not match, then return FALSE;
59 svn_boolean_t
svn_md5_digests_match(const unsigned char d1
[],
60 const unsigned char d2
[]);
64 #endif /* __cplusplus */
66 #endif /* SVN_MD5_H */