Changeset 102335 in vbox for trunk/include
- Timestamp:
- Nov 27, 2023 5:01:59 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160471
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/shacrypt.h
r102298 r102335 59 59 60 60 /** 61 * Creates a randomized salt for the RTCrShaCryptXXX functions. 62 * 63 * @returns IPRT status code. 64 * @param szSalt Where to store the generated salt. 65 * @param cchSalt Number of characters the generated salt should use. 66 * Must be >= RT_SHACRYPT_MIN_SALT_LEN and <= RT_SHACRYPT_MAX_SALT_LEN. 67 */ 68 RTR3DECL(int) RTCrShaCryptGenerateSalt(char szSalt[RT_SHACRYPT_MAX_SALT_LEN + 1], size_t cchSalt); 69 70 71 /** 61 72 * Calculates a SHAcrypt (SHA-256) digest. 62 73 * 63 * @returns VBoxstatus code.74 * @returns IPRT status code. 64 75 * @param pszKey Key (password) to use. 65 76 * @param pszSalt Salt to use. … … 76 87 * Returns a SHAcrypt (SHA-256) digest as a printable scheme. 77 88 * 78 * @returns VBoxstatus code.89 * @returns IPRT status code. 79 90 * @param abHash SHAcrypt (SHA-256) digest to return printable scheme for. 80 91 * @param pszSalt Salt to use. Must match the salt used when generating \a pabHash via RTSha256Crypt(). … … 92 103 * Calculates a SHAcrypt (SHA-512) digest. 93 104 * 94 * @returns VBoxstatus code.105 * @returns IPRT status code. 95 106 * @param pszKey Key (password) to use. 96 107 * @param pszSalt Salt to use. … … 107 118 * Returns a SHAcrypt (SHA-512) digest as a printable scheme. 108 119 * 109 * @returns VBoxstatus code.120 * @returns IPRT status code. 110 121 * @param abHash SHAcrypt (SHA-512) digest to return printable scheme for. 111 122 * @param pszSalt Salt to use. Must match the salt used when generating \a pabHash via RTSha512Crypt(). -
trunk/include/iprt/mangling.h
r102296 r102335 3734 3734 # define RTCrPkixCanCertHandleDigestType RT_MANGLER(RTCrPkixCanCertHandleDigestType) 3735 3735 # define RTCrRandBytes RT_MANGLER(RTCrRandBytes) 3736 # define RTCrShaCryptGenerateSalt RT_MANGLER(RTCrShaCryptGenerateSalt) 3736 3737 # define RTCrShaCrypt256 RT_MANGLER(RTCrShaCrypt256) 3737 3738 # define RTCrShaCrypt256ToString RT_MANGLER(RTCrShaCrypt256ToString)
Note:
See TracChangeset
for help on using the changeset viewer.