Exemplo n.º 1
0
 public static unsafe byte[] 鷭(global::Java.Security.IPublicKey p0, global::Javax.Crypto.Spec.SecretKeySpec p1)
 {
     if (id_鷭_Ljava_security_PublicKey_Ljavax_crypto_spec_SecretKeySpec_ == IntPtr.Zero)
     {
         id_鷭_Ljava_security_PublicKey_Ljavax_crypto_spec_SecretKeySpec_ = JNIEnv.GetStaticMethodID(class_ref, "鷭", "(Ljava/security/PublicKey;Ljavax/crypto/spec/SecretKeySpec;)[B");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         byte[] __ret = (byte[])JNIEnv.GetArray(JNIEnv.CallStaticObjectMethod(class_ref, id_鷭_Ljava_security_PublicKey_Ljavax_crypto_spec_SecretKeySpec_, __args), JniHandleOwnership.TransferLocalRef, typeof(byte));
         return(__ret);
     } finally {
     }
 }
Exemplo n.º 2
0
            public static unsafe byte[][] 鷭(global::Javax.Crypto.Spec.SecretKeySpec p0, byte[] p1)
            {
                if (id_鷭_Ljavax_crypto_spec_SecretKeySpec_arrayB == IntPtr.Zero)
                {
                    id_鷭_Ljavax_crypto_spec_SecretKeySpec_arrayB = JNIEnv.GetStaticMethodID(class_ref, "鷭", "(Ljavax/crypto/spec/SecretKeySpec;[B)[[B");
                }
                IntPtr native_p1 = JNIEnv.NewArray(p1);

                try {
                    JValue *__args = stackalloc JValue [2];
                    __args [0] = new JValue(p0);
                    __args [1] = new JValue(native_p1);
                    byte[][] __ret = (byte[][])JNIEnv.GetArray(JNIEnv.CallStaticObjectMethod(class_ref, id_鷭_Ljavax_crypto_spec_SecretKeySpec_arrayB, __args), JniHandleOwnership.TransferLocalRef, typeof(byte[]));
                    return(__ret);
                } finally {
                    if (p1 != null)
                    {
                        JNIEnv.CopyArray(native_p1, p1);
                        JNIEnv.DeleteLocalRef(native_p1);
                    }
                }
            }
        public static unsafe global::Android.Net.Uri EncryptAndSaveReading(global::Android.Content.Context p0, global::Javax.Crypto.Spec.SecretKeySpec p1, byte[] p2, long p3, string p4, global::Com.Qcl.VH.Content.ˮ͈ p5, global::Com.Qcl.VH.A.C.廅 p6, long p7, bool p8)
        {
            if (id_encryptAndSaveReading_Landroid_content_Context_Ljavax_crypto_spec_SecretKeySpec_arrayBJLjava_lang_String_Lcom_qcl_vh_content_ˮ͈_Lcom_qcl_vh_a_c_廅_JZ == IntPtr.Zero)
            {
                id_encryptAndSaveReading_Landroid_content_Context_Ljavax_crypto_spec_SecretKeySpec_arrayBJLjava_lang_String_Lcom_qcl_vh_content_ˮ͈_Lcom_qcl_vh_a_c_廅_JZ = JNIEnv.GetStaticMethodID(class_ref, "encryptAndSaveReading", "(Landroid/content/Context;Ljavax/crypto/spec/SecretKeySpec;[BJLjava/lang/String;Lcom/qcl/vh/content/ˮ͈;Lcom/qcl/vh/a/c/廅;JZ)Landroid/net/Uri;");
            }
            IntPtr native_p2 = JNIEnv.NewArray(p2);
            IntPtr native_p4 = JNIEnv.NewString(p4);

            try {
                JValue *__args = stackalloc JValue [9];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(native_p4);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(p6);
                __args [7] = new JValue(p7);
                __args [8] = new JValue(p8);
                global::Android.Net.Uri __ret = global::Java.Lang.Object.GetObject <global::Android.Net.Uri> (JNIEnv.CallStaticObjectMethod(class_ref, id_encryptAndSaveReading_Landroid_content_Context_Ljavax_crypto_spec_SecretKeySpec_arrayBJLjava_lang_String_Lcom_qcl_vh_content_ˮ͈_Lcom_qcl_vh_a_c_廅_JZ, __args), JniHandleOwnership.TransferLocalRef);
                return(__ret);
            } finally {
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
                JNIEnv.DeleteLocalRef(native_p4);
            }
        }