From 31f41ecf75678e41a03f5aaf32e8e17ee81286e1 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Fri, 11 Apr 2025 11:39:53 +0800 Subject: Add keygen() to utils. --- lock/util.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'lock/util.h') 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 -#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); -- cgit v1.2.3