Changeset 102296 in vbox for trunk/include/iprt/crypto
- Timestamp:
- Nov 24, 2023 3:49:29 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160430
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/shacrypt.h
r102294 r102296 43 43 44 44 45 RT_C_DECLS_BEGIN 46 47 /** @defgroup grp_rt_crshacrypt RTCrShaCrypt - SHAcrypt functions 48 * @ingroup grp_rt 49 * @{ 50 */ 51 45 52 /** Default number of rounds for SHA-crypt 256/512. */ 46 53 #define RT_SHACRYPT_DEFAULT_ROUNDS 5000 … … 50 57 #define RT_SHACRYPT_MAX_SALT_LEN 16 51 58 52 RT_C_DECLS_BEGIN53 59 54 60 /** … … 64 70 * @note This implements SHA-crypt.txt Version: 0.6 2016-8-31. 65 71 */ 66 RTR3DECL(int) RTShaCrypt256(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA256_HASH_SIZE]); 72 RTR3DECL(int) RTCrShaCrypt256(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA256_HASH_SIZE]); 73 67 74 68 75 /** … … 78 85 * @note This implements step 22 of SHA-crypt.txt Version: 0.6 2016-8-31. 79 86 */ 80 RTR3DECL(int) RT ShaCrypt256ToString(uint8_t abHash[RTSHA256_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString);87 RTR3DECL(int) RTCrShaCrypt256ToString(uint8_t abHash[RTSHA256_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString); 81 88 82 89 … … 93 100 * @note This implements SHA-crypt.txt Version: 0.6 2016-8-31. 94 101 */ 95 RTR3DECL(int) RT ShaCrypt512(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA512_HASH_SIZE]);102 RTR3DECL(int) RTCrShaCrypt512(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA512_HASH_SIZE]); 96 103 97 104 … … 108 115 * @note This implements step 22 of SHA-crypt.txt Version: 0.6 2016-8-31. 109 116 */ 110 RTR3DECL(int) RTShaCrypt512ToString(uint8_t abHash[RTSHA512_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString); 117 RTR3DECL(int) RTCrShaCrypt512ToString(uint8_t abHash[RTSHA512_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString); 118 119 /** @} */ 111 120 112 121 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.