summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2012-01-16 13:12:35 +0100
committerlado <herrlado@gmail.com>2012-01-16 13:12:35 +0100
commit48c417b2bdc155cce4404c4d45ea1434c4ac9ea3 (patch)
treead4f46fb77751dbe112386d9e052589a7234cb67
parent9988c2269d5dcceea42a98cb33fca1da7c395564 (diff)
downloadvdr-manager-48c417b2bdc155cce4404c4d45ea1434c4ac9ea3.tar.gz
vdr-manager-48c417b2bdc155cce4404c4d45ea1434c4ac9ea3.tar.bz2
initial files for DES
-rw-r--r--vdrmanager/jni/Android.mk8
-rw-r--r--vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.c24
-rw-r--r--vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.h29
3 files changed, 61 insertions, 0 deletions
diff --git a/vdrmanager/jni/Android.mk b/vdrmanager/jni/Android.mk
new file mode 100644
index 0000000..a5427ce
--- /dev/null
+++ b/vdrmanager/jni/Android.mk
@@ -0,0 +1,8 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := native_des
+LOCAL_SRC_FILES := de_bjusystems_vdrmanager_utils_crypt_NativeDES.c
+
+include $(BUILD_SHARED_LIBRARY)
diff --git a/vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.c b/vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.c
new file mode 100644
index 0000000..569b694
--- /dev/null
+++ b/vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.c
@@ -0,0 +1,24 @@
+#include "de_bjusystems_vdrmanager_utils_crypt_NativeDES.h"
+
+ /*
+ * Class: de_bjusystems_vdrmanager_utils_crypt_NativeDES
+ * Method: encrypt
+ * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
+ */
+ JNIEXPORT jstring JNICALL Java_de_bjusystems_vdrmanager_utils_crypt_NativeDES_encrypt(
+ JNIEnv *env, jobject c, jstring jstr, jstring jkey) {
+
+ return jstr;
+ }
+
+ /*
+ * Class: de_bjusystems_vdrmanager_utils_crypt_NativeDES
+ * Method: decrypt
+ * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
+ */
+ JNIEXPORT jstring JNICALL Java_de_bjusystems_vdrmanager_utils_crypt_NativeDES_decrypt(
+ JNIEnv *env, jobject c, jstring jstr, jstring key) {
+
+ return jstr;
+ }
+
diff --git a/vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.h b/vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.h
new file mode 100644
index 0000000..b54241c
--- /dev/null
+++ b/vdrmanager/jni/de_bjusystems_vdrmanager_utils_crypt_NativeDES.h
@@ -0,0 +1,29 @@
+/* DO NOT EDIT THIS FILE - it is machine generated */
+#include <jni.h>
+/* Header for class de_bjusystems_vdrmanager_utils_crypt_NativeDES */
+
+#ifndef _Included_de_bjusystems_vdrmanager_utils_crypt_NativeDES
+#define _Included_de_bjusystems_vdrmanager_utils_crypt_NativeDES
+#ifdef __cplusplus
+extern "C" {
+#endif
+/*
+ * Class: de_bjusystems_vdrmanager_utils_crypt_NativeDES
+ * Method: encrypt
+ * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
+ */
+JNIEXPORT jstring JNICALL Java_de_bjusystems_vdrmanager_utils_crypt_NativeDES_encrypt
+ (JNIEnv *, jobject, jstring, jstring);
+
+/*
+ * Class: de_bjusystems_vdrmanager_utils_crypt_NativeDES
+ * Method: decrypt
+ * Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
+ */
+JNIEXPORT jstring JNICALL Java_de_bjusystems_vdrmanager_utils_crypt_NativeDES_decrypt
+ (JNIEnv *, jobject, jstring, jstring);
+
+#ifdef __cplusplus
+}
+#endif
+#endif