]> git.saurik.com Git - apple/security.git/blob - OSX/sec/Security/SecSignatureVerificationSupport.h
Security-57740.31.2.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
15 bool SecVerifySignatureWithPublicKey(SecKeyRef publicKey, const SecAsn1AlgId *publicKeyAlgId,
16 const uint8_t *dataToHash, size_t amountToHash,
17 const uint8_t *signatureStart, size_t signatureSize,
18 CFErrorRef *error)
19 __OSX_AVAILABLE_STARTING(__MAC_10_12, __IPHONE_8_0);
20
21
22 #endif /* _SECURITY_SECSIGNATUREVERIFICATION_H_ */