2 // SecServerEncryptionSupport.h
6 #ifndef _SECURITY_SECSERVERENCRYPTIONSUPPORT_H_
7 #define _SECURITY_SECSERVERENCRYPTIONSUPPORT_H_
9 #include <Availability.h>
10 #include <CoreFoundation/CoreFoundation.h>
11 #include <Security/SecKey.h>
12 #include <Security/SecTrust.h>
14 CFDataRef
SecCopyEncryptedToServer(SecTrustRef trustedEvaluation
, CFDataRef dataToEncrypt
, CFErrorRef
*error
)
15 __OSX_AVAILABLE_STARTING(__MAC_NA
, __IPHONE_8_0
);
20 CFDataRef
SecCopyDecryptedForServer(SecKeyRef serverFullKey
, CFDataRef encryptedData
, CFErrorRef
* error
)
21 __OSX_AVAILABLE_STARTING(__MAC_NA
, __IPHONE_8_0
);
23 CFDataRef
SecCopyEncryptedToServerKey(SecKeyRef publicKey
, CFDataRef dataToEncrypt
, CFErrorRef
*error
)
24 __OSX_AVAILABLE_STARTING(__MAC_NA
, __IPHONE_8_0
);