diff options
| author | Carlos Maiolino <[email protected]> | 2025-09-06 11:12:35 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-09-06 11:12:35 +0200 |
| commit | 133a564a7ba1f57ff229e7c181227d43b4bae584 (patch) | |
| tree | 4377f34caf6abaa71621666aee3061e58c84f5d3 /C/HF/chap8/include | |
| parent | 2c9056a23e1a55fd21a8e314c903d9325bffd62e (diff) | |
Create ecat based on a lib archive
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'C/HF/chap8/include')
| -rw-r--r-- | C/HF/chap8/include/libs/encrypt.h | 10 | ||||
| -rw-r--r-- | C/HF/chap8/include/libs/xor.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/C/HF/chap8/include/libs/encrypt.h b/C/HF/chap8/include/libs/encrypt.h new file mode 100644 index 0000000..e70d8f6 --- /dev/null +++ b/C/HF/chap8/include/libs/encrypt.h @@ -0,0 +1,10 @@ +#ifndef ENCRYPT_H +#define ENCRYPT_H + +typedef void (*encrypt_fn_t)(char *message); +typedef void (*encrypt_arr_t[])(char *message); + +void encrypt(char *message, encrypt_fn_t); +void encrypt_arr(char *message, encrypt_arr_t fn_arr, int size); + +#endif /* ENCRYPT_H */ diff --git a/C/HF/chap8/include/libs/xor.h b/C/HF/chap8/include/libs/xor.h new file mode 100644 index 0000000..8dd8e17 --- /dev/null +++ b/C/HF/chap8/include/libs/xor.h @@ -0,0 +1,8 @@ +#ifndef XOR_H +#define XOR_H + +void xor16(char *m); +void xor42(char *m); +void xor64(char *m); + +#endif |
