EDGESEC  0.1.0-alpha.0+sha.ca29a8277b72f80785649ea9ef9cd7edf642d939
Secure router - reference implementation
crypt_commands.h
Go to the documentation of this file.
1 
11 #ifndef CRYPT_COMMANDS_H
12 #define CRYPT_COMMANDS_H
13 
14 #include <stdbool.h>
15 #include <inttypes.h>
16 
25 int put_crypt_cmd(struct supervisor_context *context, char *key, char *value);
26 
39 int get_crypt_cmd(struct supervisor_context *context, char *key, char **value);
40 
49 int gen_randkey_cmd(struct supervisor_context *context, char *keyid,
50  uint8_t size);
51 
60 int gen_privkey_cmd(struct supervisor_context *context, char *keyid,
61  uint8_t size);
62 
71 int gen_pubkey_cmd(struct supervisor_context *context, char *pubid,
72  char *keyid);
73 
83 int gen_cert_cmd(struct supervisor_context *context, char *certid, char *keyid,
84  struct certificate_meta *meta);
85 
95 char *encrypt_blob_cmd(struct supervisor_context *context, char *keyid,
96  char *ivid, char *blob);
97 
107 char *decrypt_blob_cmd(struct supervisor_context *context, char *keyid,
108  char *ivid, char *blob);
109 
118 char *sign_blob_cmd(struct supervisor_context *context, const char *keyid,
119  const char *blob);
120 
121 #endif
int gen_pubkey_cmd(struct supervisor_context *context, char *pubid, char *keyid)
GEN_PUBKEY command.
Definition: crypt_commands.c:132
int get_crypt_cmd(struct supervisor_context *context, char *key, char **value)
GET_CRYPT command.
Definition: crypt_commands.c:50
char * sign_blob_cmd(struct supervisor_context *context, const char *keyid, const char *blob)
SIGN_BLOB command.
Definition: crypt_commands.c:344
int gen_privkey_cmd(struct supervisor_context *context, char *keyid, uint8_t size)
GEN_PRIVKEY command.
Definition: crypt_commands.c:107
char * encrypt_blob_cmd(struct supervisor_context *context, char *keyid, char *ivid, char *blob)
ENCRYPT_BLOB command.
Definition: crypt_commands.c:196
int gen_cert_cmd(struct supervisor_context *context, char *certid, char *keyid, struct certificate_meta *meta)
GEN_CERT command.
Definition: crypt_commands.c:164
char * decrypt_blob_cmd(struct supervisor_context *context, char *keyid, char *ivid, char *blob)
DECRYPT_BLOB command.
Definition: crypt_commands.c:270
int gen_randkey_cmd(struct supervisor_context *context, char *keyid, uint8_t size)
GEN_RANDKEY command.
Definition: crypt_commands.c:80
int put_crypt_cmd(struct supervisor_context *context, char *key, char *value)
PUT_CRYPT command.
Definition: crypt_commands.c:28
bool meta
Definition: log.c:59
Definition: cryptou.h:26
Supervisor structure definition.
Definition: supervisor_config.h:45