-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathextract.h
More file actions
27 lines (21 loc) · 969 Bytes
/
Copy pathextract.h
File metadata and controls
27 lines (21 loc) · 969 Bytes
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
27
/*
* Snoolie K, (c) 2024-2025.
* extract libshortcutsign functions
*/
#ifndef libshortcutsign_extract_h
#define libshortcutsign_extract_h
#include <inttypes.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
uint8_t *auth_data_from_shortcut(const char *path, size_t *authDataSize);
uint8_t *auth_data_from_shortcut_buffer(uint8_t *buffer, uint8_t bufferSize, size_t *authDataSize);
int extract_signed_shortcut(const char *signedShortcutPath, const char *destPath);
int extract_contact_signed_shortcut(const char *signedShortcutPath, const char *destPath) __attribute__((deprecated)); /* Use extract_signed_shortcut instead, same functionality */
uint8_t *extract_signed_shortcut_buffer(uint8_t *signedShortcut, size_t signedShortcutSize, size_t *unsignedShortcutSize);
uint8_t *extract_signed_shortcut_buffer_aar(uint8_t *signedShortcut, size_t signedShortcutSize, size_t *aarSize);
#ifdef __cplusplus
}
#endif
#endif /* libshortcutsign_extract_h */