]> git.saurik.com Git - apple/security.git/blobdiff - OSX/sec/Security/SecServerEncryptionSupport.h
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / sec / Security / SecServerEncryptionSupport.h
diff --git a/OSX/sec/Security/SecServerEncryptionSupport.h b/OSX/sec/Security/SecServerEncryptionSupport.h
new file mode 100644 (file)
index 0000000..e96b474
--- /dev/null
@@ -0,0 +1,26 @@
+//
+//  SecServerEncryptionSupport.h
+//
+//
+
+#ifndef _SECURITY_SECSERVERENCRYPTIONSUPPORT_H_
+#define _SECURITY_SECSERVERENCRYPTIONSUPPORT_H_
+
+#include <Availability.h>
+#include <CoreFoundation/CoreFoundation.h>
+#include <Security/SecKey.h>
+#include <Security/SecTrust.h>
+
+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