]> git.saurik.com Git - apple/security.git/blob - keychain/TrustedPeersHelper/TPHObjcTranslation.h
Security-59754.80.3.tar.gz
[apple/security.git] / keychain / TrustedPeersHelper / TPHObjcTranslation.h
1
2 #ifndef TPHObjcTranslation_h
3 #define TPHObjcTranslation_h
4
5 #import <SecurityFoundation/SFKey.h>
6 #import <corecrypto/ccec.h>
7
8 NS_ASSUME_NONNULL_BEGIN
9
10 // This file is for translation of C/Obj-C APIs into swift-friendly things
11
12 @interface TPHObjectiveC : NSObject
13
14 + (SFECKeyPair* _Nullable)fetchKeyPairWithPrivateKeyPersistentRef:(NSData*)persistentRef error:(NSError**)error;
15 + (ccec_full_ctx_t)ccec384Context;
16 + (size_t) ccsha384_diSize;
17 + (void)contextFree:(void*) context;
18 + (SFAESKeyBitSize)aes256BitSize;
19 + (NSString*)digestUsingSha384:(NSData*) data;
20 @end
21
22 NS_ASSUME_NONNULL_END
23
24 #endif /* TPHObjcTranslation_h */