VirtualBox

Ignore:
Timestamp:
Dec 8, 2016 9:44:02 PM (8 years ago)
Author:
vboxsync
Message:

IPRT: Added RTAsn1QueryObjIdName and RTCrDigestTypeToName.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/digest-core.cpp

    r62477 r64817  
    398398}
    399399
     400
     401RTDECL(const char *) RTCrDigestTypeToName(RTDIGESTTYPE enmDigestType)
     402{
     403    switch (enmDigestType)
     404    {
     405        case RTDIGESTTYPE_CRC32:        return "CRC32";
     406        case RTDIGESTTYPE_CRC64:        return "CRC64";
     407        case RTDIGESTTYPE_MD2:          return "MD2";
     408        case RTDIGESTTYPE_MD4:          return "MD4";
     409        case RTDIGESTTYPE_MD5:          return "MD5";
     410        case RTDIGESTTYPE_SHA1:         return "SHA-1";
     411        case RTDIGESTTYPE_SHA224:       return "SHA-224";
     412        case RTDIGESTTYPE_SHA256:       return "SHA-256";
     413        case RTDIGESTTYPE_SHA384:       return "SHA-384";
     414        case RTDIGESTTYPE_SHA512:       return "SHA-512";
     415        case RTDIGESTTYPE_SHA512T224:   return "SHA-512/224";
     416        case RTDIGESTTYPE_SHA512T256:   return "SHA-512/256";
     417        default:                        return NULL;
     418    }
     419}
     420
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