diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 20:50:24 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 21:14:02 +0100 |
| commit | ad541c67761b8aa6da1566802c347cac4018d0c2 (patch) | |
| tree | a9166fa9d349911d69a6948e53b05344dcc348a0 /src/ot_rijndael.h | |
| parent | c679ff8a3b1418a5960cc49ba6458a0007df54fa (diff) | |
Move the build sources into src/
Diffstat (limited to 'src/ot_rijndael.h')
| -rw-r--r-- | src/ot_rijndael.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ot_rijndael.h b/src/ot_rijndael.h new file mode 100644 index 0000000..1235215 --- /dev/null +++ b/src/ot_rijndael.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | /* This software was written by Dirk Engling <erdgeist@erdgeist.org> | ||
| 2 | It is considered beerware. Prost. Skol. Cheers or whatever. | ||
| 3 | |||
| 4 | The rijndael implementation was taken from | ||
| 5 | |||
| 6 | http://www.cs.ucdavis.edu/~rogaway/ocb/ocb-ref/rijndael-alg-fst.c | ||
| 7 | |||
| 8 | and modified to work with 128 bits (this is 10 rounds) only. */ | ||
| 9 | |||
| 10 | #ifndef OT_RIJNDAEL_H__ | ||
| 11 | #define OT_RIJNDAEL_H__ | ||
| 12 | |||
| 13 | #include <stdint.h> | ||
| 14 | |||
| 15 | int rijndaelKeySetupEnc128(uint32_t rk[44], const uint8_t cipherKey[] ); | ||
| 16 | void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[16]); | ||
| 17 | |||
| 18 | extern const char *g_version_rijndael_c; | ||
| 19 | |||
| 20 | #endif | ||
