Changeset 51856 in vbox for trunk/src/VBox/Runtime/common/checksum/sha224str.cpp
- Timestamp:
- Jul 3, 2014 6:39:21 PM (10 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/checksum/sha224str.cpp
r51837 r51856 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - SHA-2 56string functions.3 * IPRT - SHA-224 string functions. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2009-201 0Oracle Corporation7 * Copyright (C) 2009-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 37 37 38 38 39 RTDECL(int) RTSha2 56ToString(uint8_t const pabDigest[RTSHA256_HASH_SIZE], char *pszDigest, size_t cchDigest)39 RTDECL(int) RTSha224ToString(uint8_t const pabDigest[RTSHA224_HASH_SIZE], char *pszDigest, size_t cchDigest) 40 40 { 41 return RTStrPrintHexBytes(pszDigest, cchDigest, &pabDigest[0], RTSHA2 56_HASH_SIZE, 0 /*fFlags*/);41 return RTStrPrintHexBytes(pszDigest, cchDigest, &pabDigest[0], RTSHA224_HASH_SIZE, 0 /*fFlags*/); 42 42 } 43 43 44 44 45 RTDECL(int) RTSha2 56FromString(char const *pszDigest, uint8_t pabDigest[RTSHA256_HASH_SIZE])45 RTDECL(int) RTSha224FromString(char const *pszDigest, uint8_t pabDigest[RTSHA224_HASH_SIZE]) 46 46 { 47 return RTStrConvertHexBytes(RTStrStripL(pszDigest), &pabDigest[0], RTSHA2 56_HASH_SIZE, 0 /*fFlags*/);47 return RTStrConvertHexBytes(RTStrStripL(pszDigest), &pabDigest[0], RTSHA224_HASH_SIZE, 0 /*fFlags*/); 48 48 } 49 49
Note:
See TracChangeset
for help on using the changeset viewer.