VirtualBox

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


Ignore:
Timestamp:
Nov 28, 2023 12:47:27 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160496
Message:

IPRT/crypto: Removed RTCrShaCryptGenerateSaltWeak() again, as this didn't work on Windows. Now we're using so #ifdef ugliness in UnattendedScript to get a reproducible salt for the testcases. bugref:10551

File:
1 edited

Legend:

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

    r102356 r102360  
    6868RTR3DECL(int) RTCrShaCryptGenerateSalt(char szSalt[RT_SHACRYPT_MAX_SALT_LEN + 1], size_t cchSalt);
    6969
    70 /**
    71  * Creates a randomized salt for the RTCrShaCryptXXX functions, weak version. Can be overriden in local modules.
    72  *
    73  * @returns IPRT status code.
    74  * @param   szSalt      Where to store the generated salt.
    75  * @param   cchSalt     Number of characters the generated salt should use.
    76  *                      Must be >= RT_SHACRYPT_MIN_SALT_LEN and <= RT_SHACRYPT_MAX_SALT_LEN.
    77  */
    78 #if defined(IN_RING3) && (defined(IN_RT_STATIC) || defined(IPRT_NO_CRT))
    79 RTR3DECL(int) RTCrShaCryptGenerateSaltWeak(char szSalt[RT_SHACRYPT_MAX_SALT_LEN + 1], size_t cchSalt);
    80 #else
    81 # undef  RTCrShaCryptGenerateSaltWeak /* in case of mangling */
    82 # define RTCrShaCryptGenerateSaltWeak RTCrShaCryptGenerateSalt
    83 #endif
    8470
    8571/**
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