summaryrefslogtreecommitdiffstats
path: root/lock/util.h
blob: 54dc66ba51c0cc2fe449d45a0be475a9a5a91575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef MY_UTIL_H
#define MY_UTIL_H

#include <stdint.h>

#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 WDLEN   32

void keygen(char *buf, uint8_t n);

void xor(const char *k, const char *s, char *d, uint8_t n);

#endif /* MY_UTIL_H */