VirtualBox

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


Ignore:
Timestamp:
Jul 3, 2014 6:39:21 PM (10 years ago)
Author:
vboxsync
Message:

Added the odd sha-2 algorithms to RTCrDigest and extended the testcases to cover them. Added VBOX_WITH_ALT_HASH_CODE for avoiding the OpenSSL code even for VBoxRT.dll/so/dylib.

Location:
trunk/include/iprt/crypto
Files:
2 edited

Legend:

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

    r51770 r51856  
    146146 *                          algortihms are available if not specified.
    147147 */
    148 PCRTCRDIGESTDESC RTCrDigestFindByObjIdString(const char *pszObjId, void *ppvOpaque);
     148RTDECL(PCRTCRDIGESTDESC) RTCrDigestFindByObjIdString(const char *pszObjId, void *ppvOpaque);
    149149
    150150/**
     
    160160 *                          algortihms are available if not specified.
    161161 */
    162 PCRTCRDIGESTDESC RTCrDigestFindByObjId(PCRTASN1OBJID pObjId, void *ppvOpaque);
     162RTDECL(PCRTCRDIGESTDESC) RTCrDigestFindByObjId(PCRTASN1OBJID pObjId, void *ppvOpaque);
    163163
     164RTDECL(PCRTCRDIGESTDESC) RTCrDigestFindByType(RTDIGESTTYPE enmDigestType);
    164165RTDECL(int) RTCrDigestCreateByObjIdString(PRTCRDIGEST phDigest, const char *pszObjId);
    165166RTDECL(int) RTCrDigestCreateByObjId(PRTCRDIGEST phDigest, PCRTASN1OBJID pObjId);
    166 
     167RTDECL(int) RTCrDigestCreateByType(PRTCRDIGEST phDigest, RTDIGESTTYPE enmDigestType);
    167168
    168169
  • trunk/include/iprt/crypto/x509.h

    r51770 r51856  
    9393                                                                        PCRTCRX509ALGORITHMIDENTIFIER pEncryptedDigest);
    9494
    95 /** @name Digest Algorithm OIDs.
     95/** @name Typical Digest Algorithm OIDs.
    9696 * @{ */
    9797#define RTCRX509ALGORITHMIDENTIFIERID_MD2               "1.2.840.113549.2.2"
     
    103103#define RTCRX509ALGORITHMIDENTIFIERID_SHA512            "2.16.840.1.101.3.4.2.3"
    104104#define RTCRX509ALGORITHMIDENTIFIERID_SHA224            "2.16.840.1.101.3.4.2.4"
     105#define RTCRX509ALGORITHMIDENTIFIERID_SHA512T224        "2.16.840.1.101.3.4.2.5"
     106#define RTCRX509ALGORITHMIDENTIFIERID_SHA512T256        "2.16.840.1.101.3.4.2.6"
    105107#define RTCRX509ALGORITHMIDENTIFIERID_WHIRLPOOL         "1.0.10118.3.0.55"
    106108/** @} */
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