VirtualBox

Changeset 102296 in vbox for trunk/include/iprt/crypto


Ignore:
Timestamp:
Nov 24, 2023 3:49:29 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160430
Message:

IPRT/crypto/shacrypt: Renaming (RTShaCryptXXX -> RTCrShaCryptXXX) + docs groups. bugref:10551

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/crypto/shacrypt.h

    r102294 r102296  
    4343
    4444
     45RT_C_DECLS_BEGIN
     46
     47/** @defgroup grp_rt_crshacrypt   RTCrShaCrypt - SHAcrypt functions
     48 * @ingroup grp_rt
     49 * @{
     50 */
     51
    4552/** Default number of rounds for SHA-crypt 256/512. */
    4653#define RT_SHACRYPT_DEFAULT_ROUNDS 5000
     
    5057#define RT_SHACRYPT_MAX_SALT_LEN   16
    5158
    52 RT_C_DECLS_BEGIN
    5359
    5460/**
     
    6470 * @note    This implements SHA-crypt.txt Version: 0.6 2016-8-31.
    6571 */
    66 RTR3DECL(int) RTShaCrypt256(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA256_HASH_SIZE]);
     72RTR3DECL(int) RTCrShaCrypt256(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA256_HASH_SIZE]);
     73
    6774
    6875/**
     
    7885 * @note    This implements step 22 of SHA-crypt.txt Version: 0.6 2016-8-31.
    7986 */
    80 RTR3DECL(int) RTShaCrypt256ToString(uint8_t abHash[RTSHA256_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString);
     87RTR3DECL(int) RTCrShaCrypt256ToString(uint8_t abHash[RTSHA256_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString);
    8188
    8289
     
    93100 * @note    This implements SHA-crypt.txt Version: 0.6 2016-8-31.
    94101 */
    95 RTR3DECL(int) RTShaCrypt512(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA512_HASH_SIZE]);
     102RTR3DECL(int) RTCrShaCrypt512(const char *pszKey, const char *pszSalt, uint32_t cRounds, uint8_t abHash[RTSHA512_HASH_SIZE]);
    96103
    97104
     
    108115 * @note    This implements step 22 of SHA-crypt.txt Version: 0.6 2016-8-31.
    109116 */
    110 RTR3DECL(int) RTShaCrypt512ToString(uint8_t abHash[RTSHA512_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString);
     117RTR3DECL(int) RTCrShaCrypt512ToString(uint8_t abHash[RTSHA512_HASH_SIZE], const char *pszSalt, uint32_t cRounds, char *pszString, size_t cbString);
     118
     119/** @} */
    111120
    112121RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette