2 #ifndef TPHObjcTranslation_h
3 #define TPHObjcTranslation_h
5 #import <SecurityFoundation/SFKey.h>
6 #import <corecrypto/ccec.h>
8 NS_ASSUME_NONNULL_BEGIN
10 // This file is for translation of C/Obj-C APIs into swift-friendly things
12 @interface TPHObjectiveC
: NSObject
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
;
24 #endif /* TPHObjcTranslation_h */