VirtualBox

Changeset 51851 in vbox for trunk/include


Ignore:
Timestamp:
Jul 3, 2014 2:01:28 PM (11 years ago)
Author:
vboxsync
Message:

Renamed hash implementations to fit better into the build system, supplying the missing OpenSSL-based MD5. VBoxRT uses the OpenSSL variants, all other libraries uses the alternatives. Also removed stupid OpenSSL dependencies in RTSha1Digest.cpp and RTSha256Digest.cpp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/md5.h

    r44528 r51851  
    4747 * MD5 hash algorithm context.
    4848 */
    49 typedef struct RTMD5CONTEXT
     49typedef union RTMD5CONTEXT
    5050{
    51     uint32_t in[16];
    52     uint32_t buf[4];
    53     uint32_t bits[2];
     51    uint64_t            u64BetterAlignment;
     52    uint8_t             abPadding[(4 + 6 + 16 + 1) * sizeof(uint32_t)];
     53    /** Context used by md5-alt.cpp. */
     54    struct
     55    {
     56        uint32_t        in[16];
     57        uint32_t        buf[4];
     58        uint32_t        bits[2];
     59    } AltPrivate;
     60#ifdef RT_MD5_OPENSSL_PRIVATE_CONTEXT
     61    /** Context used by md5-openssl.cpp. */
     62    MD5_CTX         OsslPrivate;
     63#endif
    5464} RTMD5CONTEXT;
    55 
    5665/** Pointer to MD5 hash algorithm context. */
    5766typedef RTMD5CONTEXT *PRTMD5CONTEXT;
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