]>
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>
14 #pragma clang diagnostic push
15 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
16 bool SecVerifySignatureWithPublicKey(SecKeyRef publicKey
, const SecAsn1AlgId
*publicKeyAlgId
,
17 const uint8_t *dataToHash
, size_t amountToHash
,
18 const uint8_t *signatureStart
, size_t signatureSize
,
20 __OSX_AVAILABLE_STARTING(__MAC_10_12
, __IPHONE_8_0
);
21 #pragma clang diagnostic pop
24 #endif /* _SECURITY_SECSIGNATUREVERIFICATION_H_ */