]>
git.saurik.com Git - apple/security.git/blob - OSX/sec/Security/SecSignatureVerificationSupport.h
2 // SecSignatureVerificationSupport.h
6 #ifndef _SECURITY_SECSIGNATUREVERIFICATION_H_
7 #define _SECURITY_SECSIGNATUREVERIFICATION_H_
9 #include <Availability.h>
10 #include <CoreFoundation/CoreFoundation.h>
11 #include <Security/SecKey.h>
12 #include <Security/SecAsn1Types.h>
15 bool SecVerifySignatureWithPublicKey(SecKeyRef publicKey
, const SecAsn1AlgId
*publicKeyAlgId
,
16 const uint8_t *dataToHash
, size_t amountToHash
,
17 const uint8_t *signatureStart
, size_t signatureSize
,
19 __OSX_AVAILABLE_STARTING(__MAC_10_12
, __IPHONE_8_0
);
22 #endif /* _SECURITY_SECSIGNATUREVERIFICATION_H_ */