VirtualBox

Changeset 102360 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Nov 28, 2023 12:47:27 PM (15 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/src/VBox/Main/include/UnattendedScript.h

    r102228 r102360  
    157157     */
    158158    virtual HRESULT getConditional(const char *pachPlaceholder, size_t cchPlaceholder, bool *pfOutputting);
     159
     160    /**
     161     * Static function to generate a salt for the RTShaCryptXXX functions.
     162     *
     163     * @returns VBox status code.
     164     * @param   pszSalt             Where to store the salt on success.
     165     * @param   cchSalt             Size (in characters) of \a pszSalt. Not including terminator.
     166     *                              This also specifies how long the generated salt will be.
     167     *                              Must be >= RT_SHACRYPT_MIN_SALT_LEN and <= RT_SHACRYPT_MAX_SALT_LEN.
     168     */
     169    static int shaCryptGenerateSalt(char *pszSalt, size_t cchSalt);
    159170};
    160171
Note: See TracChangeset for help on using the changeset viewer.

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