-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibshortcutsign.h
26 lines (21 loc) · 916 Bytes
/
libshortcutsign.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
* Snoolie K, (c) 2024.
* library for contact signing shortcuts with no WorkflowKit
* (Albeit, still requires libAppleArchive)
* Based on my research on reversing WorkflowKit.
*/
#ifndef libshortcutsign_h
#define libshortcutsign_h
#import <Foundation/Foundation.h>
#import <AppleArchive/AppleArchive.h>
#import <AppleArchive/AEAContext.h>
#import <CoreFoundation/CoreFoundation.h>
#import <Security/Security.h>
#include "xplat.h"
int sign_shortcut_with_private_key_and_auth_data(SecKeyRef privKey, NSData *authData, const char *unsignedShortcutPath, const char *destPath);
NSArray *generate_appleid_certs_with_data(NSArray *appleIDCertDataChain);
int verify_dict_auth_data(NSDictionary *dict);
int verify_dict_auth_data_cert_trust(NSDictionary *dict);
int verify_contact_signed_auth_data(NSData *authData);
int verify_contact_signed_shortcut(const char *signedShortcutPath);
#endif /* libshortcutsign_h */