diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-07 14:32:41 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2025-04-07 14:32:41 +0800 |
| commit | c0766d32115ef8b5e92608555fad55a3618b69da (patch) | |
| tree | 506ef688323ee0c013225a3b8713e25565a7a14e /lock/util.c | |
| parent | 2a5eaad1bcac0f0ff61bd82b6427932cb4d03872 (diff) | |
| download | smart-home-c0766d32115ef8b5e92608555fad55a3618b69da.tar.gz | |
frnt logic for radio comms.
Diffstat (limited to 'lock/util.c')
| -rw-r--r-- | lock/util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lock/util.c b/lock/util.c new file mode 100644 index 0000000..e9a7a5a --- /dev/null +++ b/lock/util.c @@ -0,0 +1,9 @@ +#include "util.h" + +void xor(const char *k, const char *s, char *d, int n) +{ + int i; + + for (i = 0; i < n; i++) + d[i] = s[i] ^ k[i]; +} |
