public byte[] encryption(byte[] p7)
    {
        if (p7 != null) {
            byte[] v2_0 = 0;
            if (this.cipherMode != egis.optical.finger.host.CipherManager$CipherType.AES) {
                if (this.cipherMode == egis.optical.finger.host.CipherManager$CipherType.RSA) {
                    try {
                        javax.crypto.Cipher v1_0 = javax.crypto.Cipher.getInstance(RSA);
                        v1_0.init(1, this.readPubKey());
                        this.reverse(p7);
                        v2_0 = v1_0.doFinal(p7);
                        this.reverse(v2_0);
                    } catch (javax.crypto.BadPaddingException v3_9) {
                        v3_9.printStackTrace();
                    } catch (javax.crypto.BadPaddingException v3_8) {
                        v3_8.printStackTrace();
                    } catch (javax.crypto.BadPaddingException v3_7) {
                        v3_7.printStackTrace();
                    } catch (javax.crypto.BadPaddingException v3_6) {
                        v3_6.printStackTrace();
                    } catch (javax.crypto.BadPaddingException v3_5) {
                        v3_5.printStackTrace();
                    } catch (javax.crypto.BadPaddingException v3_4) {
                        v3_4.printStackTrace();
                    }
                }
            } else {
                try {
                    javax.crypto.Cipher v1_1 = javax.crypto.Cipher.getInstance(AES/CBC/PKCS7Padding);
                    v1_1.init(1, this.mSecKey, this.mSpec);
                    v2_0 = v1_1.doFinal(p7);
                } catch (java.security.PublicKey v0_11) {
                    v0_11.printStackTrace();
                } catch (java.security.PublicKey v0_10) {
                    v0_10.printStackTrace();
                } catch (java.security.PublicKey v0_9) {
                    v0_9.printStackTrace();
                } catch (java.security.PublicKey v0_8) {
                    v0_8.printStackTrace();
                } catch (java.security.PublicKey v0_7) {
                    v0_7.printStackTrace();
                } catch (java.security.PublicKey v0_6) {
                    v0_6.printStackTrace();
                }
            }
            return v2_0;
        } else {
            android.util.Log.e(FpCsaClientLib_CipherManager, encryption plaintext == null);
            egis.optical.finger.host.FPNativeBase.lastErrCode = 2083;
            return 0;
        }
    }