VirtualBox

Ignore:
Timestamp:
May 11, 2020 12:00:59 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137860
Message:

IPRT/crypto: Adding functions for checking whether a key or certificate can handle a given digest (size wise). Also, added OIDs, padding variants and stuff for sha512-224WithRSAEncryption and sha512-256WithRSAEncryption (RFC-8017). Note that OpenSSL does not implement these yet. [missed a couple sha512t* usages] bugref:9699

Location:
trunk/src/VBox/Runtime/common/crypto
Files:
2 edited

Legend:

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

    r82968 r84251  
    519519static const char * const g_apszSha512t224Aliases[] =
    520520{
     521    RTCR_PKCS1_SHA512T224_WITH_RSA_OID,
    521522    NULL
    522523};
     
    574575static const char * const g_apszSha512t256Aliases[] =
    575576{
     577    RTCR_PKCS1_SHA512T256_WITH_RSA_OID,
    576578    NULL
    577579};
  • trunk/src/VBox/Runtime/common/crypto/pkix-signature-rsa.cpp

    r84248 r84251  
    447447    RTCR_PKCS1_SHA512_WITH_RSA_OID,
    448448    RTCR_PKCS1_SHA224_WITH_RSA_OID,
     449    RTCR_PKCS1_SHA512T224_WITH_RSA_OID,
     450    RTCR_PKCS1_SHA512T256_WITH_RSA_OID,
    449451    /* Note: Note quite sure about these OIW oddballs. */
    450452    "1.3.14.3.2.11" /* OIW rsaSignature */,
Note: See TracChangeset for help on using the changeset viewer.

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