X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5dd5f9ec28f304ca377c42fd7f711d6cf12b90e1..5c19dc3ae3bd8e40a9c028b0deddd50ff337692c:/OSX/sec/Security/SecServerEncryptionSupport.h diff --git a/OSX/sec/Security/SecServerEncryptionSupport.h b/OSX/sec/Security/SecServerEncryptionSupport.h new file mode 100644 index 00000000..e96b474c --- /dev/null +++ b/OSX/sec/Security/SecServerEncryptionSupport.h @@ -0,0 +1,26 @@ +// +// SecServerEncryptionSupport.h +// +// + +#ifndef _SECURITY_SECSERVERENCRYPTIONSUPPORT_H_ +#define _SECURITY_SECSERVERENCRYPTIONSUPPORT_H_ + +#include +#include +#include +#include + +CFDataRef SecCopyEncryptedToServer(SecTrustRef trustedEvaluation, CFDataRef dataToEncrypt, CFErrorRef *error) + __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_8_0); + +// +// For testing +// +CFDataRef SecCopyDecryptedForServer(SecKeyRef serverFullKey, CFDataRef encryptedData, CFErrorRef* error) + __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_8_0); + +CFDataRef SecCopyEncryptedToServerKey(SecKeyRef publicKey, CFDataRef dataToEncrypt, CFErrorRef *error) + __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_8_0); + +#endif