summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
Diffstat (limited to 'vdrmanager')
-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