summaryrefslogtreecommitdiff
path: root/ot_rijndael.h
diff options
context:
space:
mode:
authorerdgeist <>2012-05-28 14:47:58 +0000
committererdgeist <>2012-05-28 14:47:58 +0000
commit44e004ac9aaa7cab4fd2f3d64ffecf0d188ac756 (patch)
tree15608c1ee6f760a1b7380b609f800373e0dfea5c /ot_rijndael.h
parent8e683affd108635c9c7ad9585086d6fff847f676 (diff)
Adding rijndael code for udp connection id calculation
Diffstat (limited to 'ot_rijndael.h')
-rw-r--r--ot_rijndael.h20
1 files changed, 20 insertions, 0 deletions
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 @@
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 $id$ */
11
12#ifndef __OT_RIJNDAEL_H__
13#define __OT_RIJNDAEL_H__
14
15#include <stdint.h>
16
17int rijndaelKeySetupEnc128(uint32_t rk[44], const uint8_t cipherKey[] );
18void rijndaelEncrypt128(const uint32_t rk[44], const uint8_t pt[16], uint8_t ct[16]);
19
20#endif