add missing d0_blind_id headers
authorRudolf Polzer <divverent@alientrap.org>
Thu, 5 Aug 2010 04:26:03 +0000 (06:26 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 5 Aug 2010 04:26:03 +0000 (06:26 +0200)
.gitignore
misc/builddeps/dp.linux64/include/d0_blind_id/d0_rijndael.h [new file with mode: 0644]
misc/builddeps/dp.linux64/lib/libd0_blind_id.la
misc/builddeps/dp.linux64/lib/libd0_rijndael.la

index 6711a99..d4d9f3e 100644 (file)
@@ -1,7 +1,7 @@
-darkplaces
-fteqcc
-div0-gittools
-netradiant
-mediasource
-d0_blind_id
-*.d0si
+/darkplaces
+/fteqcc
+/div0-gittools
+/netradiant
+/mediasource
+/d0_blind_id
+/*.d0si
diff --git a/misc/builddeps/dp.linux64/include/d0_blind_id/d0_rijndael.h b/misc/builddeps/dp.linux64/include/d0_blind_id/d0_rijndael.h
new file mode 100644 (file)
index 0000000..59db778
--- /dev/null
@@ -0,0 +1,21 @@
+// from http://www.efgh.com/software/rijndael.htm (public domain)
+
+#ifndef H__RIJNDAEL
+#define H__RIJNDAEL
+
+#include "d0.h"
+
+EXPORT int d0_rijndael_setup_encrypt(unsigned long *rk, const unsigned char *key,
+  int keybits);
+EXPORT int d0_rijndael_setup_decrypt(unsigned long *rk, const unsigned char *key,
+  int keybits);
+EXPORT void d0_rijndael_encrypt(const unsigned long *rk, int nrounds,
+  const unsigned char plaintext[16], unsigned char ciphertext[16]);
+EXPORT void d0_rijndael_decrypt(const unsigned long *rk, int nrounds,
+  const unsigned char ciphertext[16], unsigned char plaintext[16]);
+
+#define D0_RIJNDAEL_KEYLENGTH(keybits) ((keybits)/8)
+#define D0_RIJNDAEL_RKLENGTH(keybits)  ((keybits)/8+28)
+#define D0_RIJNDAEL_NROUNDS(keybits)   ((keybits)/32+6)
+
+#endif
index 0dbd791..23c6fec 100755 (executable)
@@ -11,7 +11,7 @@ dlname='libd0_blind_id.so.0'
 library_names='libd0_blind_id.so.0.0.0 libd0_blind_id.so.0 libd0_blind_id.so'
 
 # The name of the static archive.
-old_library='libd0_blind_id.a'
+old_library=''
 
 # Linker flags that can not go in dependency_libs.
 inherited_linker_flags=''
index 9d61d5e..07bd25b 100755 (executable)
@@ -11,7 +11,7 @@ dlname='libd0_rijndael.so.0'
 library_names='libd0_rijndael.so.0.0.0 libd0_rijndael.so.0 libd0_rijndael.so'
 
 # The name of the static archive.
-old_library='libd0_rijndael.a'
+old_library=''
 
 # Linker flags that can not go in dependency_libs.
 inherited_linker_flags=''