// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "javax-crypto-Cipher"))]
__jni_bindgen! {
/// public class [Cipher](https://developer.android.com/reference/javax/crypto/Cipher.html)
///
/// Required feature: "javax-crypto-Cipher"
public class Cipher ("javax/crypto/Cipher") extends crate::java::lang::Object {
/// [getInstance](https://developer.android.com/reference/javax/crypto/Cipher.html#getInstance(java.lang.String))
///
/// Required features: "java-lang-String", "javax-crypto-Cipher"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "javax-crypto-Cipher")))]
pub fn getInstance_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::crypto::Cipher>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | STATIC | FINAL, .name == "getInstance", .descriptor == "(Ljava/lang/String;)Ljavax/crypto/Cipher;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("javax/crypto/Cipher\0", "getInstance\0", "(Ljava/lang/String;)Ljavax/crypto/Cipher;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/javax/crypto/Cipher.html#getInstance(java.lang.String,%20java.lang.String))
///
/// Required features: "java-lang-String", "javax-crypto-Cipher"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "javax-crypto-Cipher")))]
pub fn getInstance_String_String<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::crypto::Cipher>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | STATIC | FINAL, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Cipher;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("javax/crypto/Cipher\0", "getInstance\0", "(Ljava/lang/String;Ljava/lang/String;)Ljavax/crypto/Cipher;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInstance](https://developer.android.com/reference/javax/crypto/Cipher.html#getInstance(java.lang.String,%20java.security.Provider))
///
/// Required features: "java-lang-String", "java-security-Provider", "javax-crypto-Cipher"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-Provider", feature = "javax-crypto-Cipher")))]
pub fn getInstance_String_Provider<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Provider>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::crypto::Cipher>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | STATIC | FINAL, .name == "getInstance", .descriptor == "(Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/Cipher;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("javax/crypto/Cipher\0", "getInstance\0", "(Ljava/lang/String;Ljava/security/Provider;)Ljavax/crypto/Cipher;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getProvider](https://developer.android.com/reference/javax/crypto/Cipher.html#getProvider())
///
/// Required features: "java-security-Provider"
#[cfg(any(feature = "all", all(feature = "java-security-Provider")))]
pub fn getProvider<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::Provider>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getProvider", .descriptor == "()Ljava/security/Provider;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getProvider\0", "()Ljava/security/Provider;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAlgorithm](https://developer.android.com/reference/javax/crypto/Cipher.html#getAlgorithm())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getAlgorithm<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getAlgorithm", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getAlgorithm\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getBlockSize](https://developer.android.com/reference/javax/crypto/Cipher.html#getBlockSize())
pub fn getBlockSize<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getBlockSize", .descriptor == "()I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getBlockSize\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getOutputSize](https://developer.android.com/reference/javax/crypto/Cipher.html#getOutputSize(int))
pub fn getOutputSize<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getOutputSize", .descriptor == "(I)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getOutputSize\0", "(I)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIV](https://developer.android.com/reference/javax/crypto/Cipher.html#getIV())
pub fn getIV<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getIV", .descriptor == "()[B"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getIV\0", "()[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getParameters](https://developer.android.com/reference/javax/crypto/Cipher.html#getParameters())
///
/// Required features: "java-security-AlgorithmParameters"
#[cfg(any(feature = "all", all(feature = "java-security-AlgorithmParameters")))]
pub fn getParameters<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::AlgorithmParameters>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getParameters", .descriptor == "()Ljava/security/AlgorithmParameters;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getParameters\0", "()Ljava/security/AlgorithmParameters;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getExemptionMechanism](https://developer.android.com/reference/javax/crypto/Cipher.html#getExemptionMechanism())
///
/// Required features: "javax-crypto-ExemptionMechanism"
#[cfg(any(feature = "all", all(feature = "javax-crypto-ExemptionMechanism")))]
pub fn getExemptionMechanism<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::javax::crypto::ExemptionMechanism>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "getExemptionMechanism", .descriptor == "()Ljavax/crypto/ExemptionMechanism;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "getExemptionMechanism\0", "()Ljavax/crypto/ExemptionMechanism;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.Key))
///
/// Required features: "java-security-Key"
#[cfg(any(feature = "all", all(feature = "java-security-Key")))]
pub fn init_int_Key<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/Key;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/Key;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.Key,%20java.security.SecureRandom))
///
/// Required features: "java-security-Key", "java-security-SecureRandom"
#[cfg(any(feature = "all", all(feature = "java-security-Key", feature = "java-security-SecureRandom")))]
pub fn init_int_Key_SecureRandom<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::SecureRandom>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/Key;Ljava/security/SecureRandom;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/Key;Ljava/security/SecureRandom;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.Key,%20java.security.spec.AlgorithmParameterSpec))
///
/// Required features: "java-security-Key", "java-security-spec-AlgorithmParameterSpec"
#[cfg(any(feature = "all", all(feature = "java-security-Key", feature = "java-security-spec-AlgorithmParameterSpec")))]
pub fn init_int_Key_AlgorithmParameterSpec<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::spec::AlgorithmParameterSpec>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.Key,%20java.security.spec.AlgorithmParameterSpec,%20java.security.SecureRandom))
///
/// Required features: "java-security-Key", "java-security-SecureRandom", "java-security-spec-AlgorithmParameterSpec"
#[cfg(any(feature = "all", all(feature = "java-security-Key", feature = "java-security-SecureRandom", feature = "java-security-spec-AlgorithmParameterSpec")))]
pub fn init_int_Key_AlgorithmParameterSpec_SecureRandom<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::spec::AlgorithmParameterSpec>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::SecureRandom>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;Ljava/security/SecureRandom;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.Key,%20java.security.AlgorithmParameters))
///
/// Required features: "java-security-AlgorithmParameters", "java-security-Key"
#[cfg(any(feature = "all", all(feature = "java-security-AlgorithmParameters", feature = "java-security-Key")))]
pub fn init_int_Key_AlgorithmParameters<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::AlgorithmParameters>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/Key;Ljava/security/AlgorithmParameters;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/Key;Ljava/security/AlgorithmParameters;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.Key,%20java.security.AlgorithmParameters,%20java.security.SecureRandom))
///
/// Required features: "java-security-AlgorithmParameters", "java-security-Key", "java-security-SecureRandom"
#[cfg(any(feature = "all", all(feature = "java-security-AlgorithmParameters", feature = "java-security-Key", feature = "java-security-SecureRandom")))]
pub fn init_int_Key_AlgorithmParameters_SecureRandom<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::AlgorithmParameters>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::SecureRandom>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/Key;Ljava/security/AlgorithmParameters;Ljava/security/SecureRandom;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.cert.Certificate))
///
/// Required features: "java-security-cert-Certificate"
#[cfg(any(feature = "all", all(feature = "java-security-cert-Certificate")))]
pub fn init_int_Certificate<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::Certificate>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/cert/Certificate;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/cert/Certificate;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [init](https://developer.android.com/reference/javax/crypto/Cipher.html#init(int,%20java.security.cert.Certificate,%20java.security.SecureRandom))
///
/// Required features: "java-security-SecureRandom", "java-security-cert-Certificate"
#[cfg(any(feature = "all", all(feature = "java-security-SecureRandom", feature = "java-security-cert-Certificate")))]
pub fn init_int_Certificate_SecureRandom<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::cert::Certificate>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::SecureRandom>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "init", .descriptor == "(ILjava/security/cert/Certificate;Ljava/security/SecureRandom;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "init\0", "(ILjava/security/cert/Certificate;Ljava/security/SecureRandom;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [update](https://developer.android.com/reference/javax/crypto/Cipher.html#update(byte%5B%5D))
pub fn update_byte_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "update", .descriptor == "([B)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "update\0", "([B)[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [update](https://developer.android.com/reference/javax/crypto/Cipher.html#update(byte%5B%5D,%20int,%20int))
pub fn update_byte_array_int_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "update", .descriptor == "([BII)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "update\0", "([BII)[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [update](https://developer.android.com/reference/javax/crypto/Cipher.html#update(byte%5B%5D,%20int,%20int,%20byte%5B%5D))
pub fn update_byte_array_int_int_byte_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "update", .descriptor == "([BII[B)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "update\0", "([BII[B)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [update](https://developer.android.com/reference/javax/crypto/Cipher.html#update(byte%5B%5D,%20int,%20int,%20byte%5B%5D,%20int))
pub fn update_byte_array_int_int_byte_array_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg4: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "update", .descriptor == "([BII[BI)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "update\0", "([BII[BI)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [update](https://developer.android.com/reference/javax/crypto/Cipher.html#update(java.nio.ByteBuffer,%20java.nio.ByteBuffer))
///
/// Required features: "java-nio-ByteBuffer"
#[cfg(any(feature = "all", all(feature = "java-nio-ByteBuffer")))]
pub fn update_ByteBuffer_ByteBuffer<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::ByteBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::ByteBuffer>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "update", .descriptor == "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "update\0", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal())
pub fn doFinal<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "()[B"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "()[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal(byte%5B%5D,%20int))
pub fn doFinal_byte_array_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "([BI)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "([BI)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal(byte%5B%5D))
pub fn doFinal_byte_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "([B)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "([B)[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal(byte%5B%5D,%20int,%20int))
pub fn doFinal_byte_array_int_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "([BII)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "([BII)[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal(byte%5B%5D,%20int,%20int,%20byte%5B%5D))
pub fn doFinal_byte_array_int_int_byte_array<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "([BII[B)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "([BII[B)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal(byte%5B%5D,%20int,%20int,%20byte%5B%5D,%20int))
pub fn doFinal_byte_array_int_int_byte_array_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg4: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "([BII[BI)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "([BII[BI)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [doFinal](https://developer.android.com/reference/javax/crypto/Cipher.html#doFinal(java.nio.ByteBuffer,%20java.nio.ByteBuffer))
///
/// Required features: "java-nio-ByteBuffer"
#[cfg(any(feature = "all", all(feature = "java-nio-ByteBuffer")))]
pub fn doFinal_ByteBuffer_ByteBuffer<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::ByteBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::nio::ByteBuffer>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "doFinal", .descriptor == "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "doFinal\0", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [wrap](https://developer.android.com/reference/javax/crypto/Cipher.html#wrap(java.security.Key))
///
/// Required features: "java-security-Key"
#[cfg(any(feature = "all", all(feature = "java-security-Key")))]
pub fn wrap<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::security::Key>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "wrap", .descriptor == "(Ljava/security/Key;)[B"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "wrap\0", "(Ljava/security/Key;)[B\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unwrap](https://developer.android.com/reference/javax/crypto/Cipher.html#unwrap(byte%5B%5D,%20java.lang.String,%20int))
///
/// Required features: "java-lang-String", "java-security-Key"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-Key")))]
pub fn unwrap<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ByteArray>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::Key>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | FINAL, .name == "unwrap", .descriptor == "([BLjava/lang/String;I)Ljava/security/Key;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("javax/crypto/Cipher\0", "unwrap\0", "([BLjava/lang/String;I)Ljava/security/Key;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getMaxAllowedKeyLength](https://developer.android.com/reference/javax/crypto/Cipher.html#getMaxAllowedKeyLength(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getMaxAllowedKeyLength<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | STATIC | FINAL, .name == "getMaxAllowedKeyLength", .descriptor == "(Ljava/lang/String;)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("javax/crypto/Cipher\0", "getMaxAllowedKeyLength\0", "(Ljava/lang/String;)I\0");
__jni_env.call_static_int_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getMaxAllowedParameterSpec](https://developer.android.com/reference/javax/crypto/Cipher.html#getMaxAllowedParameterSpec(java.lang.String))
///
/// Required features: "java-lang-String", "java-security-spec-AlgorithmParameterSpec"
#[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-security-spec-AlgorithmParameterSpec")))]
pub fn getMaxAllowedParameterSpec<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::security::spec::AlgorithmParameterSpec>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "javax/crypto/Cipher", java.flags == PUBLIC | STATIC | FINAL, .name == "getMaxAllowedParameterSpec", .descriptor == "(Ljava/lang/String;)Ljava/security/spec/AlgorithmParameterSpec;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("javax/crypto/Cipher\0", "getMaxAllowedParameterSpec\0", "(Ljava/lang/String;)Ljava/security/spec/AlgorithmParameterSpec;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [DECRYPT_MODE](https://developer.android.com/reference/javax/crypto/Cipher.html#DECRYPT_MODE)
pub const DECRYPT_MODE : i32 = 2;
/// public static final [ENCRYPT_MODE](https://developer.android.com/reference/javax/crypto/Cipher.html#ENCRYPT_MODE)
pub const ENCRYPT_MODE : i32 = 1;
/// public static final [PRIVATE_KEY](https://developer.android.com/reference/javax/crypto/Cipher.html#PRIVATE_KEY)
pub const PRIVATE_KEY : i32 = 2;
/// public static final [PUBLIC_KEY](https://developer.android.com/reference/javax/crypto/Cipher.html#PUBLIC_KEY)
pub const PUBLIC_KEY : i32 = 1;
/// public static final [SECRET_KEY](https://developer.android.com/reference/javax/crypto/Cipher.html#SECRET_KEY)
pub const SECRET_KEY : i32 = 3;
/// public static final [UNWRAP_MODE](https://developer.android.com/reference/javax/crypto/Cipher.html#UNWRAP_MODE)
pub const UNWRAP_MODE : i32 = 4;
/// public static final [WRAP_MODE](https://developer.android.com/reference/javax/crypto/Cipher.html#WRAP_MODE)
pub const WRAP_MODE : i32 = 3;
}
}