1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-09-26 03:40:05 +00:00

Bot persistence boilerplate

This commit is contained in:
2022-04-04 12:12:37 -05:00
parent 3515d10b1c
commit b6bd8b2518
4 changed files with 122 additions and 8 deletions

View File

@@ -16,24 +16,18 @@
dumping.
*/
enum {
BOX_IP,
BOX_PUBKEY,
BOX_MAX
};
struct sLaikaB_box {
uint8_t *data;
uint8_t *unlockedData;
struct sLaikaV_vm vm;
};
inline void laikaB_unlock() {
inline void laikaB_unlock(struct sLaikaB_box *box) {
}
/* safely free's allocated buffer using libsodium's api for clearing sensitive data from memory */
inline void laikaB_lock() {
inline void laikaB_lock(struct sLaikaB_box *box) {
}