summaryrefslogtreecommitdiffstats
path: root/lock/util.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2025-04-15 18:10:52 +0800
committerSadeep Madurange <sadeep@asciimx.com>2025-04-15 18:15:31 +0800
commit18502ba0f60906d6fc886d85096d8c2eef9ca4a9 (patch)
tree1600851148da2c721eda28b716fa3dfbe2336755 /lock/util.h
parent41ccbacf8a68f9bd7fe798b19ef5a9f07563a7d0 (diff)
downloadsmart-home-18502ba0f60906d6fc886d85096d8c2eef9ca4a9.tar.gz
Add encryption logic to back end.
Diffstat (limited to 'lock/util.h')
-rw-r--r--lock/util.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lock/util.h b/lock/util.h
index cb4e86f..32dbcad 100644
--- a/lock/util.h
+++ b/lock/util.h
@@ -4,15 +4,12 @@
#include <stdint.h>
#define KEY "dM>}jdb,6gsnC$J^K 8(I5vyPemPs%;K"
+#define SYN "dM>}jdb,6gsnC$J^K 8(I5vyPemPs%;O"
#define LOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}Ij"
-#define UNLOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}Ik"
+#define UNLOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}IL"
#define WDLEN 32
-void wdt_init(void);
-
-void keygen(char *buf, uint8_t n);
-
void xor(const char *k, const char *s, char *d, uint8_t n);
#endif /* MY_UTIL_H */