VirtualBox

Changeset 100442 in vbox for trunk/include/iprt/crypto/key.h


Ignore:
Timestamp:
Jul 8, 2023 11:10:51 AM (17 months ago)
Author:
vboxsync
Message:

IPRT,OpenSSL: Support ECDSA for verficiation purposes when IPRT links with OpenSSL. This required quite a bit of cleanups, so not entirely no-risk. bugref:10479 ticketref:21621

File:
1 edited

Legend:

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

    r98103 r100442  
    6666    /** RSA public key. */
    6767    RTCRKEYTYPE_RSA_PUBLIC,
     68    /** ECDSA private key. */
     69    RTCRKEYTYPE_ECDSA_PRIVATE,
     70    /** ECDSA public key. */
     71    RTCRKEYTYPE_ECDSA_PUBLIC,
    6872    /** End of key types. */
    6973    RTCRKEYTYPE_END,
     
    7579RTDECL(int)             RTCrKeyCreateFromSubjectPublicKeyInfo(PRTCRKEY phKey, struct RTCRX509SUBJECTPUBLICKEYINFO const *pSrc,
    7680                                                              PRTERRINFO pErrInfo, const char *pszErrorTag);
    77 RTDECL(int)             RTCrKeyCreateFromPublicAlgorithmAndBits(PRTCRKEY phKey,  PCRTASN1OBJID pAlgorithm,
    78                                                                 PCRTASN1BITSTRING pPublicKey,
     81RTDECL(int)             RTCrKeyCreateFromPublicAlgorithmAndBits(PRTCRKEY phKey, PCRTASN1OBJID pAlgorithm,
     82                                                                PCRTASN1DYNTYPE pParameters, PCRTASN1BITSTRING pPublicKey,
    7983                                                                PRTERRINFO pErrInfo, const char *pszErrorTag);
    8084RTDECL(int)             RTCrKeyCreateFromPemSection(PRTCRKEY phKey, uint32_t fFlags, struct RTCRPEMSECTION const *pSection,
     
    105109RTDECL(int)             RTCrKeyQueryRsaModulus(RTCRKEY hKey, PRTBIGNUM pModulus);
    106110RTDECL(int)             RTCrKeyQueryRsaPrivateExponent(RTCRKEY hKey, PRTBIGNUM pPrivateExponent);
     111RTDECL(int)             RTCrKeyVerifyParameterCompatibility(RTCRKEY hKey, PCRTASN1DYNTYPE pParameters, bool fForSignature,
     112                                                            PCRTASN1OBJID pAlgorithm, PRTERRINFO pErrInfo);
     113
    107114
    108115/** Public key markers. */
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