-
Notifications
You must be signed in to change notification settings - Fork 0
/
IO.h
23 lines (17 loc) · 817 Bytes
/
IO.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PV_IO_H
#define PV_IO_H
#define PV_SOCK_ACCEPT 3
#define PV_SOCK_CLIENT 4
#define PV_TS_BASE 946684800 // 2000-01-01 00:00:00
#define PV_TS_MAX 1099511627
#define PV_BLOCKSIZE 16LL
#define PV_CHUNKSIZE 16777216LL
#define PV_SENDSIZE 1024
#define PV_VERIFY_HASHSIZE 16 // 128-bit
void ioSetup(const unsigned char smk[AEM_KDF_MASTER_KEYLEN]);
int checkUserDir(const uint16_t uid);
void respond_addFile(const uint16_t uid, const uint16_t slot, const uint16_t chunk, const bool keep, const size_t rawSize, uint64_t ts_file, unsigned char xmfk[32]);
void respond_getFile(const uint16_t uid, const uint16_t slot, const uint16_t chunk);
void respond_delFile(const uint16_t uid, const uint16_t slot);
void respond_vfyFile(const uint16_t uid, const uint16_t slot, const unsigned char * const verifyKey);
#endif