VirtualBox

Changeset 51856 in vbox for trunk/include


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
Files:
4 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/** @} */
  • trunk/include/iprt/mangling.h

    r51842 r51856  
    23202320# define RTCrDigestCreateByObjId                        RT_MANGLER(RTCrDigestCreateByObjId)
    23212321# define RTCrDigestCreateByObjIdString                  RT_MANGLER(RTCrDigestCreateByObjIdString)
     2322# define RTCrDigestCreateByType                         RT_MANGLER(RTCrDigestCreateByType)
     2323# define RTCrDigestFindByObjId                          RT_MANGLER(RTCrDigestFindByObjId)
     2324# define RTCrDigestFindByObjIdString                    RT_MANGLER(RTCrDigestFindByObjIdString)
     2325# define RTCrDigestFindByType                           RT_MANGLER(RTCrDigestFindByType)
    23222326# define RTCrRsaDigestInfo_DecodeAsn1                   RT_MANGLER(RTCrRsaDigestInfo_DecodeAsn1)
    23232327# define RTCrRsaOtherPrimeInfo_DecodeAsn1               RT_MANGLER(RTCrRsaOtherPrimeInfo_DecodeAsn1)
  • trunk/include/iprt/types.h

    r51770 r51856  
    23482348    /** SHA-512 checksum. */
    23492349    RTDIGESTTYPE_SHA512,
     2350    /** SHA-512/224 checksum. */
     2351    RTDIGESTTYPE_SHA512T224,
     2352    /** SHA-512/256 checksum. */
     2353    RTDIGESTTYPE_SHA512T256,
    23502354    /** End of valid types. */
    23512355    RTDIGESTTYPE_END,
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