From ad541c67761b8aa6da1566802c347cac4018d0c2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 20:50:24 +0100 Subject: Move the build sources into src/ --- src/ot_rijndael.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ot_rijndael.h (limited to 'src/ot_rijndael.h') 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 @@ +/* This software was written by Dirk Engling + It is considered beerware. Prost. Skol. Cheers or whatever. + + The rijndael implementation was taken from + + http://www.cs.ucdavis.edu/~rogaway/ocb/ocb-ref/rijndael-alg-fst.c + + and modified to work with 128 bits (this is 10 rounds) only. */ + +#ifndef OT_RIJNDAEL_H__ +#define OT_RIJNDAEL_H__ + +#include + +int rijndaelKeySetupEnc128(uint32_t rk[44], const uint8_t cipherKey[] ); +void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[16]); + +extern const char *g_version_rijndael_c; + +#endif -- cgit v1.3