]> git.saurik.com Git - apple/security.git/blob - OSX/sec/Security/SecSignatureVerificationSupport.h
Security-59306.101.1.tar.gz
[apple/security.git] / OSX / sec / Security / SecSignatureVerificationSupport.h
1 //
2 // SecSignatureVerificationSupport.h
3 //
4 //
5
6 #ifndef _SECURITY_SECSIGNATUREVERIFICATION_H_
7 #define _SECURITY_SECSIGNATUREVERIFICATION_H_
8
9 #include <Availability.h>
10 #include <CoreFoundation/CoreFoundation.h>
11 #include <Security/SecKey.h>
12 #include <Security/SecAsn1Types.h>
13
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,
19 CFErrorRef *error)
20 __OSX_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_8_0);
21 #pragma clang diagnostic pop
22
23
24 #endif /* _SECURITY_SECSIGNATUREVERIFICATION_H_ */