Changeset 59689 in vbox for trunk/include/iprt
- Timestamp:
- Feb 15, 2016 9:25:36 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105546
- Location:
- trunk/include/iprt
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/digest.h
r59620 r59689 182 182 RTDECL(bool) RTCrDigestIsFinalized(RTCRDIGEST hDigest); 183 183 RTDECL(RTDIGESTTYPE) RTCrDigestGetType(RTCRDIGEST hDigest); 184 RTDECL(const char *) RTCrDigestGetAlgorithmOid(RTCRDIGEST hDigest); 185 186 187 /** 188 * Translates an IPRT digest type value to an OID. 189 * 190 * @returns Dotted OID string on success, NULL if not translatable. 191 * @param enmDigestType The IPRT digest type value to convert. 192 */ 193 RTDECL(const char *) RTCrDigestTypeToAlgorithmOid(RTDIGESTTYPE enmDigestType); 184 194 185 195 /** @} */ -
trunk/include/iprt/crypto/pkix.h
r59620 r59689 53 53 PCRTASN1BITSTRING pSignatureValue, const void *pvData, size_t cbData, 54 54 PRTERRINFO pErrInfo); 55 56 57 /** 58 * Verifies the signed digest (@a pvSignedDigest) against our digest (@a 59 * hDigest) using the specfied public key (@a pPublicKey) and algorithm. 60 * 61 * @returns IPRT status code. 62 * @param pAlgorithm The signature algorithm (digest w/ cipher). 63 * @param pParameters Parameter to the public key algorithm. Optional. 64 * @param pPublicKey The public key. 65 * @param pvSignedDigest The signed digest. 66 * @param cbSignedDigest The signed digest size. 67 * @param hDigest The digest of the data to compare @a pvSignedDigest 68 * with. 69 * @param pErrInfo Where to return extended error info. Optional. 70 */ 71 RTDECL(int) RTCrPkixPubKeyVerifySignedDigest(PCRTASN1OBJID pAlgorithm, PCRTASN1DYNTYPE pParameters, 72 PCRTASN1BITSTRING pPublicKey, void const *pvSignedDigest, size_t cbSignedDigest, 73 RTCRDIGEST hDigest, PRTERRINFO pErrInfo); 55 74 56 75 -
trunk/include/iprt/crypto/x509.h
r59663 r59689 93 93 RTDECL(int) RTCrX509AlgorithmIdentifier_CompareDigestAndEncryptedDigest(PCRTCRX509ALGORITHMIDENTIFIER pDigest, 94 94 PCRTCRX509ALGORITHMIDENTIFIER pEncryptedDigest); 95 /** 96 * Compares a digest OID with an encrypted digest algorithm OID, checking if 97 * they specify the same digest. 98 * 99 * @returns 0 if same digest, -1 if the digest is unknown, 1 if the encrypted 100 * digest does not match. 101 * @param pszDigestOid The digest algorithm OID. 102 * @param pszEncryptedDigestOid The encrypted digest algorithm OID. 103 */ 104 RTDECL(int) RTCrX509AlgorithmIdentifier_CompareDigestOidAndEncryptedDigestOid(const char *pszDigestOid, 105 const char *pszEncryptedDigestOid); 106 107 108 /** 109 * Combine the encryption algorithm with the digest algorithm. 110 * 111 * @returns OID of encrypted digest algorithm. 112 * @param pEncryption The encryption algorithm. Will work if this is 113 * the OID of an encrypted digest algorithm too, as 114 * long as it matches @a pDigest. 115 * @param pDigest The digest algorithm. Will work if this is the 116 * OID of an encrypted digest algorithm too, as 117 * long as it matches @a pEncryption. 118 */ 119 RTDECL(const char *) RTCrX509AlgorithmIdentifier_CombineEncryptionAndDigest(PCRTCRX509ALGORITHMIDENTIFIER pEncryption, 120 PCRTCRX509ALGORITHMIDENTIFIER pDigest); 121 122 /** 123 * Combine the encryption algorithm OID with the digest algorithm OID. 124 * 125 * @returns OID of encrypted digest algorithm. 126 * @param pszEncryptionOid The encryption algorithm. Will work if this is 127 * the OID of an encrypted digest algorithm too, as 128 * long as it matches @a pszDigestOid. 129 * @param pszDigestOid The digest algorithm. Will work if this is the 130 * OID of an encrypted digest algorithm too, as 131 * long as it matches @a pszEncryptionOid. 132 */ 133 RTDECL(const char *) RTCrX509AlgorithmIdentifier_CombineEncryptionOidAndDigestOid(const char *pszEncryptionOid, 134 const char *pszDigestOid); 135 95 136 96 137 /** @name Typical Digest Algorithm OIDs. -
trunk/include/iprt/mangling.h
r59672 r59689 2692 2692 # define RTCrDigestGetHashSize RT_MANGLER(RTCrDigestGetHashSize) 2693 2693 # define RTCrDigestGetType RT_MANGLER(RTCrDigestGetType) 2694 # define RTCrDigestGetAlgorithmOid RT_MANGLER(RTCrDigestGetAlgorithmOid) 2694 2695 # define RTCrDigestIsFinalized RT_MANGLER(RTCrDigestIsFinalized) 2695 2696 # define RTCrDigestMatch RT_MANGLER(RTCrDigestMatch) … … 2705 2706 # define RTCrDigestFindByObjIdString RT_MANGLER(RTCrDigestFindByObjIdString) 2706 2707 # define RTCrDigestFindByType RT_MANGLER(RTCrDigestFindByType) 2708 # define RTCrDigestTypeToAlgorithmOid RT_MANGLER(RTCrDigestTypeToAlgorithmOid) 2707 2709 # define RTCrRsaDigestInfo_DecodeAsn1 RT_MANGLER(RTCrRsaDigestInfo_DecodeAsn1) 2708 2710 # define RTCrRsaOtherPrimeInfo_DecodeAsn1 RT_MANGLER(RTCrRsaOtherPrimeInfo_DecodeAsn1) … … 2846 2848 # define RTCrPkixGetCiperOidFromSignatureAlgorithm RT_MANGLER(RTCrPkixGetCiperOidFromSignatureAlgorithm) 2847 2849 # define RTCrPkixPubKeyVerifySignature RT_MANGLER(RTCrPkixPubKeyVerifySignature) 2850 # define RTCrPkixPubKeyVerifySignedDigest RT_MANGLER(RTCrPkixPubKeyVerifySignedDigest) 2848 2851 # define RTCrSpcAttributeTypeAndOptionalValue_DecodeAsn1 RT_MANGLER(RTCrSpcAttributeTypeAndOptionalValue_DecodeAsn1) 2849 2852 # define RTCrSpcIndirectDataContent_DecodeAsn1 RT_MANGLER(RTCrSpcIndirectDataContent_DecodeAsn1) … … 2961 2964 # define RTCrX509CertPathsValidateAll RT_MANGLER(RTCrX509CertPathsValidateAll) 2962 2965 # define RTCrX509CertPathsValidateOne RT_MANGLER(RTCrX509CertPathsValidateOne) 2963 # define RTCrX509AlgorithmIdentifier_Compare RT_MANGLER(RTCrX509AlgorithmIdentifier_Compare) 2964 # define RTCrX509AlgorithmIdentifier_CompareDigestAndEncryptedDigest RT_MANGLER(RTCrX509AlgorithmIdentifier_CompareDigestAndEncryptedDigest) 2966 # define RTCrX509AlgorithmIdentifier_CombineEncryptionAndDigest RT_MANGLER(RTCrX509AlgorithmIdentifier_CombineEncryptionAndDigest) 2967 # define RTCrX509AlgorithmIdentifier_CombineEncryptionOidAndDigestOid RT_MANGLER(RTCrX509AlgorithmIdentifier_CombineEncryptionOidAndDigestOid) 2968 # define RTCrX509AlgorithmIdentifier_Compare RT_MANGLER(RTCrX509AlgorithmIdentifier_Compare) 2969 # define RTCrX509AlgorithmIdentifier_CompareDigestAndEncryptedDigest RT_MANGLER(RTCrX509AlgorithmIdentifier_CompareDigestAndEncryptedDigest) 2970 # define RTCrX509AlgorithmIdentifier_CompareDigestOidAndEncryptedDigestOid RT_MANGLER(RTCrX509AlgorithmIdentifier_CompareDigestOidAndEncryptedDigestOid) 2965 2971 # define RTCrX509AlgorithmIdentifier_CompareWithString RT_MANGLER(RTCrX509AlgorithmIdentifier_CompareWithString) 2966 2972 # define RTCrX509AlgorithmIdentifier_Delete RT_MANGLER(RTCrX509AlgorithmIdentifier_Delete)
Note:
See TracChangeset
for help on using the changeset viewer.