diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-11 11:39:53 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-11 11:39:53 +0800 |
| commit | 31f41ecf75678e41a03f5aaf32e8e17ee81286e1 (patch) | |
| tree | 024778e5a8e20d2dbae4dbc778b593b503a38bf7 /lock/util.h | |
| parent | 014040f33f914a82031e15940924bc9c92236fec (diff) | |
| download | smart-home-31f41ecf75678e41a03f5aaf32e8e17ee81286e1.tar.gz | |
Add keygen() to utils.
Diffstat (limited to 'lock/util.h')
| -rw-r--r-- | lock/util.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lock/util.h b/lock/util.h index c3449c8..54dc66b 100644 --- a/lock/util.h +++ b/lock/util.h @@ -3,16 +3,13 @@ #include <stdint.h> -#define WDLEN 32 +#define KEY "dM>}jdb,6gsnC$J^K 8(I5vyPemPs%;K" +#define LOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}Ij" +#define UNLOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}Ik" -#define KEY "dM>}jdb,6gsnC$J^K 8(I5vyPemPs%;K" -//#define SYN "43iqr5$NB8SpN?Z/52{iVl>o|i!.'dsT" -//#define LOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}Ij" -//#define UNLOCK "R,I7l^E4j]KyLR9'*Q{Jd'zu.~!84}Ik" +#define WDLEN 32 -#define SYN "SYNSYNSYNSYNSYNSYNSYNSYNSYNSYNSY" -#define ACK "ACKACKACKACKACKACKACKACKACKACKAC" -#define MSG "MSGMSGMSGMSGMSGMSGMSGMSGMSGMSGMS" +void keygen(char *buf, uint8_t n); void xor(const char *k, const char *s, char *d, uint8_t n); |
