Changeset 33229 in vbox for trunk/include
- Timestamp:
- Oct 19, 2010 1:23:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/sha.h
r33228 r33229 39 39 #define RTSHA1_HASH_SIZE 20 40 40 /** The length of a SHA-1 digest string. The terminator is not included. */ 41 #define RTSHA1_ STRING_LEN (40)41 #define RTSHA1_DIGEST_LEN (40) 42 42 43 43 /** … … 97 97 * @param pszDigest Where to return the stringified digest. 98 98 * @param cchDigest The size of the output buffer. Should be at least 99 * RTSHA1_ STRING_LEN + 1 bytes.99 * RTSHA1_DIGEST_LEN + 1 bytes. 100 100 */ 101 101 RTDECL(int) RTSha1ToString(uint8_t const pabDigest[RTSHA1_HASH_SIZE], char *pszDigest, size_t cchDigest); … … 142 142 #define RTSHA256_HASH_SIZE 32 143 143 /** The length of a SHA-256 digest string. The terminator is not included. */ 144 #define RTSHA256_ STRING_LEN 64144 #define RTSHA256_DIGEST_LEN 64 145 145 146 146 /** … … 200 200 * @param pszDigest Where to return the stringified digest. 201 201 * @param cchDigest The size of the output buffer. Should be at least 202 * RTSHA256_ STRING_LEN + 1 bytes.202 * RTSHA256_DIGEST_LEN + 1 bytes. 203 203 */ 204 204 RTDECL(int) RTSha256ToString(uint8_t const pabDigest[RTSHA256_HASH_SIZE], char *pszDigest, size_t cchDigest); … … 221 221 #define RTSHA512_HASH_SIZE 64 222 222 /** The length of a SHA-512 digest string. The terminator is not included. */ 223 #define RTSHA512_ STRING_LEN 128223 #define RTSHA512_DIGEST_LEN 128 224 224 225 225 /** … … 279 279 * @param pszDigest Where to return the stringified digest. 280 280 * @param cchDigest The size of the output buffer. Should be at least 281 * RTSHA512_ STRING_LEN + 1 bytes.281 * RTSHA512_DIGEST_LEN + 1 bytes. 282 282 */ 283 283 RTDECL(int) RTSha512ToString(uint8_t const pabDigest[RTSHA512_HASH_SIZE], char *pszDigest, size_t cchDigest);
Note:
See TracChangeset
for help on using the changeset viewer.