VirtualBox

Ignore:
Timestamp:
Jul 15, 2022 12:59:55 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/RTCrPkcs7: Added a RTCRPKCS7SIGN_SD_F_USE_V1 and a RTCRPKCS7SIGN_SD_F_NO_DATA_ENCAP flag to the RTCrPkcs7SimpleSignSignedData function for helping getting with producing Authenticode signatures. bugref:8691

File:
1 edited

Legend:

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

    r95630 r95656  
    670670 * @{ */
    671671/** Detached data. */
    672 #define RTCRPKCS7SIGN_SD_F_DEATCHED      RT_BIT_32(0)
     672#define RTCRPKCS7SIGN_SD_F_DEATCHED         RT_BIT_32(0)
    673673/** No SMIME capabilities attribute. */
    674 #define RTCRPKCS7SIGN_SD_F_NO_SMIME_CAP  RT_BIT_32(1)
     674#define RTCRPKCS7SIGN_SD_F_NO_SMIME_CAP     RT_BIT_32(1)
     675/** Produce version 1 output (PKCS\#7), rather than version 3 (CMS). */
     676#define RTCRPKCS7SIGN_SD_F_USE_V1           RT_BIT_32(2)
     677/** Avoid extra OCTET STRING encapsulation around the data blob.
     678 * This is needed for Authenticode signatures.  This requires that the
     679 * content type is supplied via the additional authenticated attributes.
     680 * @note Currently only works with RTCRPKCS7SIGN_SD_F_USE_V1.  */
     681#define RTCRPKCS7SIGN_SD_F_NO_DATA_ENCAP    RT_BIT_32(3)
    675682/** Valid flag mask.   */
    676 #define RTCRPKCS7SIGN_SD_F_VALID_MASK    UINT32_C(0x00000003)
     683#define RTCRPKCS7SIGN_SD_F_VALID_MASK       UINT32_C(0x0000000f)
    677684/** @} */
    678685
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