-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchest.h
More file actions
29 lines (24 loc) · 757 Bytes
/
chest.h
File metadata and controls
29 lines (24 loc) · 757 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
28
#ifndef CHEST_H
#define CHEST_H 1
struct ChestGlobals {
int use_password_file;
char *password_filename;
unsigned int hash_base;
unsigned int hash_factor;
unsigned int hash_length;
unsigned int hash_length_is_file_size;
unsigned int use_shake256;
};
extern struct ChestGlobals chest_globals;
#define CHEST_DEFAULT_EXTENSION ".chest"
void ChestHelp(void);
void ChestVersion(void);
void ChestRemoveNewline(char *text);
void ChestEncrypt(char *src, char *dst);
void ChestDecrypt(char *src, char *dst);
char *ChestGetPassword(void);
char *ChestHashSHA512FromFile(char *filename);
char *ChestHashSHA512FromString(const char *pw);
char *ChestHashShake256FromFile(char *filename);
char *ChestHashShake256FromString(const char *pw);
#endif /* CHEST_H */