From 44e004ac9aaa7cab4fd2f3d64ffecf0d188ac756 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 28 May 2012 14:47:58 +0000 Subject: Adding rijndael code for udp connection id calculation --- ot_rijndael.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ot_rijndael.h (limited to 'ot_rijndael.h') diff --git a/ot_rijndael.h b/ot_rijndael.h new file mode 100644 index 0000000..7f57b3f --- /dev/null +++ b/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. + + $id$ */ + +#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]); + +#endif -- cgit v1.2.3