Changeset 102294 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Nov 24, 2023 1:40:35 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/shacrypt.cpp
r102292 r102294 48 48 49 49 50 RTR3DECL(int) RTShaCrypt256(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t pabHash[RTSHA256_HASH_SIZE])50 RTR3DECL(int) RTShaCrypt256(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA256_HASH_SIZE]) 51 51 { 52 52 AssertPtrReturn(pszKey, VERR_INVALID_POINTER); … … 159 159 } 160 160 161 memcpy( pabHash, abDigest, RTSHA256_HASH_SIZE);161 memcpy(abHash, abDigest, RTSHA256_HASH_SIZE); 162 162 163 163 RTMemWipeThoroughly(abDigestTemp, RTSHA256_HASH_SIZE, 3); … … 222 222 223 223 224 RTR3DECL(int) RTShaCrypt512(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t pabHash[RTSHA512_HASH_SIZE])224 RTR3DECL(int) RTShaCrypt512(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA512_HASH_SIZE]) 225 225 { 226 226 AssertPtrReturn(pszKey, VERR_INVALID_POINTER); … … 333 333 } 334 334 335 memcpy( pabHash, abDigest, RTSHA512_HASH_SIZE);335 memcpy(abHash, abDigest, RTSHA512_HASH_SIZE); 336 336 337 337 RTMemWipeThoroughly(abDigestTemp, RTSHA512_HASH_SIZE, 3);
Note:
See TracChangeset
for help on using the changeset viewer.