Changeset 85121 in vbox for trunk/include/iprt/crypto
- Timestamp:
- Jul 8, 2020 7:33:26 PM (5 years ago)
- Location:
- trunk/include/iprt/crypto
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/applecodesign.h
r84509 r85121 252 252 * @param pvUser User argument. 253 253 */ 254 typedef DECLCALLBACK (int) FNRTCRAPPLECSDIGESTAREA(RTCRDIGEST hDigest, size_t off, size_t cb, void *pvUser);254 typedef DECLCALLBACKTYPE(int, FNRTCRAPPLECSDIGESTAREA,(RTCRDIGEST hDigest, size_t off, size_t cb, void *pvUser)); 255 255 /** Pointer to a image digest callback. */ 256 256 typedef FNRTCRAPPLECSDIGESTAREA *PFNRTCRAPPLECSDIGESTAREA; -
trunk/include/iprt/crypto/digest.h
r82968 r85121 66 66 * Allocates the digest data. 67 67 */ 68 DECLCALLBACKMEMBER(void *, pfnNew )(void);68 DECLCALLBACKMEMBER(void *, pfnNew,(void)); 69 69 70 70 /** … … 73 73 * @param pvState The opaque message digest state. 74 74 */ 75 DECLCALLBACKMEMBER(void, pfnFree )(void *pvState);75 DECLCALLBACKMEMBER(void, pfnFree,(void *pvState)); 76 76 77 77 /** … … 82 82 * @param cbData The amount of data to add to the digest. 83 83 */ 84 DECLCALLBACKMEMBER(void, pfnUpdate )(void *pvState, const void *pvData, size_t cbData);84 DECLCALLBACKMEMBER(void, pfnUpdate,(void *pvState, const void *pvData, size_t cbData)); 85 85 86 86 /** … … 91 91 * least RTCRDIGESTDESC::cbHash bytes large. 92 92 */ 93 DECLCALLBACKMEMBER(void, pfnFinal )(void *pvState, uint8_t *pbHash);93 DECLCALLBACKMEMBER(void, pfnFinal,(void *pvState, uint8_t *pbHash)); 94 94 95 95 /** … … 103 103 * @param fReInit Set if this is a re-init call. 104 104 */ 105 DECLCALLBACKMEMBER(int, pfnInit )(void *pvState, void *pvOpaque, bool fReInit);105 DECLCALLBACKMEMBER(int, pfnInit,(void *pvState, void *pvOpaque, bool fReInit)); 106 106 107 107 /** … … 112 112 * @param pvState The opaque message digest state. 113 113 */ 114 DECLCALLBACKMEMBER(void, pfnDelete )(void *pvState);114 DECLCALLBACKMEMBER(void, pfnDelete,(void *pvState)); 115 115 116 116 /** … … 123 123 * @param pvSrcState The opaque message digest state to clone (source). 124 124 */ 125 DECLCALLBACKMEMBER(int, pfnClone )(void *pvState, void const *pvSrcState);125 DECLCALLBACKMEMBER(int, pfnClone,(void *pvState, void const *pvSrcState)); 126 126 127 127 /** … … 135 135 * @param pvState The opaque message digest state. 136 136 */ 137 DECLCALLBACKMEMBER(uint32_t, pfnGetHashSize )(void *pvState);137 DECLCALLBACKMEMBER(uint32_t, pfnGetHashSize,(void *pvState)); 138 138 139 139 /** … … 143 143 * @param pvState The opaque message digest state. 144 144 */ 145 DECLCALLBACKMEMBER(RTDIGESTTYPE, pfnGetDigestType )(void *pvState);145 DECLCALLBACKMEMBER(RTDIGESTTYPE, pfnGetDigestType,(void *pvState)); 146 146 } RTCRDIGESTDESC; 147 147 /** Pointer to const message digest details and vtable. */ -
trunk/include/iprt/crypto/pkcs7.h
r84380 r85121 485 485 * @param pErrInfo Optional error info buffer. 486 486 */ 487 typedef DECLCALLBACK (int) FNRTCRPKCS7VERIFYCERTCALLBACK(PCRTCRX509CERTIFICATE pCert, RTCRX509CERTPATHS hCertPaths,488 uint32_t fFlags, void *pvUser, PRTERRINFO pErrInfo);487 typedef DECLCALLBACKTYPE(int, FNRTCRPKCS7VERIFYCERTCALLBACK,(PCRTCRX509CERTIFICATE pCert, RTCRX509CERTPATHS hCertPaths, 488 uint32_t fFlags, void *pvUser, PRTERRINFO pErrInfo)); 489 489 /** Pointer to a FNRTCRPKCS7VERIFYCERTCALLBACK callback. */ 490 490 typedef FNRTCRPKCS7VERIFYCERTCALLBACK *PFNRTCRPKCS7VERIFYCERTCALLBACK; -
trunk/include/iprt/crypto/pkix.h
r84251 r85121 200 200 * none. 201 201 */ 202 DECLCALLBACKMEMBER(int, pfnInit )(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, void *pvOpaque, bool fSigning,203 RTCRKEY hKey, PCRTASN1DYNTYPE pParams) ;202 DECLCALLBACKMEMBER(int, pfnInit,(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, void *pvOpaque, bool fSigning, 203 RTCRKEY hKey, PCRTASN1DYNTYPE pParams)); 204 204 205 205 /** … … 214 214 * @param fSigning Exactly the same value as the init call. 215 215 */ 216 DECLCALLBACKMEMBER(int, pfnReset )(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, bool fSigning);216 DECLCALLBACKMEMBER(int, pfnReset,(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, bool fSigning)); 217 217 218 218 /** … … 226 226 * @param fSigning Exactly the same value as the init call. 227 227 */ 228 DECLCALLBACKMEMBER(void, pfnDelete )(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, bool fSigning);228 DECLCALLBACKMEMBER(void, pfnDelete,(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, bool fSigning)); 229 229 230 230 /** … … 249 249 * @param cbSignature The size of the signature (in bytes). 250 250 */ 251 DECLCALLBACKMEMBER(int, pfnVerify )(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, RTCRKEY hKey,252 RTCRDIGEST hDigest, void const *pvSignature, size_t cbSignature) ;251 DECLCALLBACKMEMBER(int, pfnVerify,(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, RTCRKEY hKey, 252 RTCRDIGEST hDigest, void const *pvSignature, size_t cbSignature)); 253 253 254 254 /** … … 277 277 * case of VERR_BUFFER_OVERFLOW. 278 278 */ 279 DECLCALLBACKMEMBER(int, pfnSign )(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, RTCRKEY hKey,280 RTCRDIGEST hDigest, void *pvSignature, size_t *pcbSignature) ;279 DECLCALLBACKMEMBER(int, pfnSign,(struct RTCRPKIXSIGNATUREDESC const *pDesc, void *pvState, RTCRKEY hKey, 280 RTCRDIGEST hDigest, void *pvSignature, size_t *pcbSignature)); 281 281 282 282 } RTCRPKIXSIGNATUREDESC; … … 435 435 * none. 436 436 */ 437 DECLCALLBACKMEMBER(int, pfnInit )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, void *pvOpaque, bool fEncrypt,438 PCRTASN1BITSTRING pKey, PCRTASN1DYNTYPE pParams) ;437 DECLCALLBACKMEMBER(int, pfnInit,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, void *pvOpaque, bool fEncrypt, 438 PCRTASN1BITSTRING pKey, PCRTASN1DYNTYPE pParams)); 439 439 440 440 /** … … 451 451 * @param enmOperation Same as for the earlier pfnInit call. 452 452 */ 453 DECLCALLBACKMEMBER(int, pfnReset )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, bool fEncrypt);453 DECLCALLBACKMEMBER(int, pfnReset,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, bool fEncrypt)); 454 454 455 455 /** … … 464 464 * @param enmOperation Same as for the earlier pfnInit call. 465 465 */ 466 DECLCALLBACKMEMBER(void, pfnDelete )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, bool fEncrypt);466 DECLCALLBACKMEMBER(void, pfnDelete,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, bool fEncrypt)); 467 467 468 468 /** … … 487 487 * @param fFinal Whether this is the final call. 488 488 */ 489 DECLCALLBACKMEMBER(int, pfnEncrypt )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState,489 DECLCALLBACKMEMBER(int, pfnEncrypt,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, 490 490 void const *pvPlaintext, size_t cbPlaintext, 491 void *pvCiphertext, size_t cbMaxCiphertext, size_t *pcbCiphertext, bool fFinal) ;491 void *pvCiphertext, size_t cbMaxCiphertext, size_t *pcbCiphertext, bool fFinal)); 492 492 493 493 /** … … 503 503 * @param fFinal Whether this is the final call. 504 504 */ 505 DECLCALLBACKMEMBER(int, pfnEncryptLength )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState,506 size_t cbPlaintext, size_t *pcbCiphertext, bool fFinal) ;505 DECLCALLBACKMEMBER(int, pfnEncryptLength,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, 506 size_t cbPlaintext, size_t *pcbCiphertext, bool fFinal)); 507 507 508 508 /** … … 527 527 * @param fFinal Whether this is the final call. 528 528 */ 529 DECLCALLBACKMEMBER(int, pfnDecrypt )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState,529 DECLCALLBACKMEMBER(int, pfnDecrypt,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, 530 530 void const *pvCiphertext, size_t cbCiphertext, 531 void *pvPlaintext, size_t cbMaxPlaintext, size_t *pcbPlaintext, bool fFinal) ;531 void *pvPlaintext, size_t cbMaxPlaintext, size_t *pcbPlaintext, bool fFinal)); 532 532 533 533 /** … … 543 543 * @param fFinal Whether this is the final call. 544 544 */ 545 DECLCALLBACKMEMBER(int, pfnDecryptLength )(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState,546 size_t cbCiphertext, size_t *pcbPlaintext, bool fFinal) ;545 DECLCALLBACKMEMBER(int, pfnDecryptLength,(struct RTCRPKIXENCRYPTIONDESC const *pDesc, void *pvState, 546 size_t cbCiphertext, size_t *pcbPlaintext, bool fFinal)); 547 547 } RTCRPKIXENCRYPTIONDESC; 548 548 /** Pointer to a public key encryption schema provider descriptor. */
Note:
See TracChangeset
for help on using the changeset viewer.