Info Call to Crypto API

Description

List of all calls to cryptographic methods.

Recommendation

Do not use insecure or weak cryptographic algorithms. For example, the Data Encryption Standard (DES) encryption algorithm is considered highly insecure

Do not use Object.equals() to compare cryptographic keys

Cryptographic keys should never be serialized

Technical details

Method com.google.android.gms.internal.zzzh.zza() calling method javax.crypto.spec.IvParameterSpec.<init>()


    protected varargs com.google.android.gms.internal.zzabh zza(com.google.android.gms.internal.zzuw p8, com.google.android.gms.internal.zzabh[] p9)
    {
        String v0_8;
        if (p9 == null) {
            v0_8 = 0;
        } else {
            v0_8 = 1;
        }
        String v0_0;
        com.google.android.gms.common.internal.zzaa.zzaj(v0_8);
        if (p9.length < 3) {
            v0_0 = 0;
        } else {
            v0_0 = 1;
        }
        String v0_7;
        com.google.android.gms.common.internal.zzaa.zzaj(v0_0);
        String v2_1 = com.google.android.gms.internal.zzvi.zzd(p9[0]);
        int v3_0 = com.google.android.gms.internal.zzvi.zzd(p9[1]);
        String v4 = com.google.android.gms.internal.zzvi.zzd(p9[2]);
        if (p9.length >= 4) {
            v0_7 = com.google.android.gms.internal.zzvi.zzd(p9[3]);
        } else {
            v0_7 = "AES/CBC/NoPadding";
        }
        javax.crypto.spec.SecretKeySpec v5_2 = com.google.android.gms.internal.zzzh.zzbuy.matcher(v0_7);
        if (v5_2.matches()) {
            try {
                String v0_10 = com.google.android.gms.internal.zzzh.zza(javax.crypto.Cipher.getInstance(v0_7), v2_1, new javax.crypto.spec.SecretKeySpec(v3_0.getBytes(), v5_2.group(1)), new javax.crypto.spec.IvParameterSpec(v4.getBytes()));
                return new com.google.android.gms.internal.zzabp(v0_10);
            } catch (RuntimeException v1) {
                String v0_11 = String.valueOf(v0_10);
                if (v0_11.length() == 0) {
                    String v0_13 = new String("Encrypt: invalid transformation:");
                } else {
                    v0_13 = "Encrypt: invalid transformation:".concat(v0_11);
                }
                throw new RuntimeException(v0_13);
            } catch (RuntimeException v1) {
            }
        } else {
            String v0_17;
            String v0_15 = String.valueOf(v0_7);
            if (v0_15.length() == 0) {
                v0_17 = new String("Encrypt: invalid transformation:");
            } else {
                v0_17 = "Encrypt: invalid transformation:".concat(v0_15);
            }
            throw new RuntimeException(v0_17);
        }
    }

Method com.google.android.gms.internal.zzas.zzc() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public byte[] zzc(byte[] p8, String p9)
    {
        if (p8.length == 16) {
            try {
                Throwable v0_12 = com.google.android.gms.internal.zzah.zza(p9, 0);
            } catch (Throwable v0_16) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_16);
            } catch (Throwable v0_15) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_15);
            } catch (Throwable v0_14) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_14);
            } catch (Throwable v0_13) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_13);
            } catch (Throwable v0_11) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_11);
            } catch (Throwable v0_10) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_10);
            } catch (Throwable v0_9) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_9);
            }
            if (v0_12.length > 16) {
                javax.crypto.Cipher v1_0 = java.nio.ByteBuffer.allocate(v0_12.length);
                v1_0.put(v0_12);
                v1_0.flip();
                byte[] v2_2 = new byte[16];
                Throwable v0_3 = new byte[(v0_12.length - 16)];
                v1_0.get(v2_2);
                v1_0.get(v0_3);
                this.getCipher().init(2, new javax.crypto.spec.SecretKeySpec(p8, "AES"), new javax.crypto.spec.IvParameterSpec(v2_2));
                return this.getCipher().doFinal(v0_3);
            } else {
                throw new com.google.android.gms.internal.zzas$zza(this);
            }
        } else {
            throw new com.google.android.gms.internal.zzas$zza(this);
        }
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.encrypt() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public static byte[] encrypt(javax.crypto.spec.SecretKeySpec p4, byte[] p5, byte[] p6)
    {
        javax.crypto.Cipher v0 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS7Padding");
        v0.init(1, p4, new javax.crypto.spec.IvParameterSpec(p5));
        return v0.doFinal(p6);
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.decrypt() calling method javax.crypto.spec.IvParameterSpec.<init>()


    public static byte[] decrypt(javax.crypto.spec.SecretKeySpec p4, byte[] p5, byte[] p6)
    {
        javax.crypto.Cipher v0 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS7Padding");
        v0.init(2, p4, new javax.crypto.spec.IvParameterSpec(p5));
        return v0.doFinal(p6);
    }

Method com.google.android.gms.internal.zzzh.zza() calling method javax.crypto.Cipher.getInstance()


    protected varargs com.google.android.gms.internal.zzabh zza(com.google.android.gms.internal.zzuw p8, com.google.android.gms.internal.zzabh[] p9)
    {
        String v0_8;
        if (p9 == null) {
            v0_8 = 0;
        } else {
            v0_8 = 1;
        }
        String v0_0;
        com.google.android.gms.common.internal.zzaa.zzaj(v0_8);
        if (p9.length < 3) {
            v0_0 = 0;
        } else {
            v0_0 = 1;
        }
        String v0_7;
        com.google.android.gms.common.internal.zzaa.zzaj(v0_0);
        String v2_1 = com.google.android.gms.internal.zzvi.zzd(p9[0]);
        int v3_0 = com.google.android.gms.internal.zzvi.zzd(p9[1]);
        String v4 = com.google.android.gms.internal.zzvi.zzd(p9[2]);
        if (p9.length >= 4) {
            v0_7 = com.google.android.gms.internal.zzvi.zzd(p9[3]);
        } else {
            v0_7 = "AES/CBC/NoPadding";
        }
        javax.crypto.spec.SecretKeySpec v5_2 = com.google.android.gms.internal.zzzh.zzbuy.matcher(v0_7);
        if (v5_2.matches()) {
            try {
                String v0_10 = com.google.android.gms.internal.zzzh.zza(javax.crypto.Cipher.getInstance(v0_7), v2_1, new javax.crypto.spec.SecretKeySpec(v3_0.getBytes(), v5_2.group(1)), new javax.crypto.spec.IvParameterSpec(v4.getBytes()));
                return new com.google.android.gms.internal.zzabp(v0_10);
            } catch (RuntimeException v1) {
                String v0_11 = String.valueOf(v0_10);
                if (v0_11.length() == 0) {
                    String v0_13 = new String("Encrypt: invalid transformation:");
                } else {
                    v0_13 = "Encrypt: invalid transformation:".concat(v0_11);
                }
                throw new RuntimeException(v0_13);
            } catch (RuntimeException v1) {
            }
        } else {
            String v0_17;
            String v0_15 = String.valueOf(v0_7);
            if (v0_15.length() == 0) {
                v0_17 = new String("Encrypt: invalid transformation:");
            } else {
                v0_17 = "Encrypt: invalid transformation:".concat(v0_15);
            }
            throw new RuntimeException(v0_17);
        }
    }

Method com.google.android.gms.internal.zzas.getCipher() calling method javax.crypto.Cipher.getInstance()


    private javax.crypto.Cipher getCipher()
    {
        try {
            if (com.google.android.gms.internal.zzas.zzor == null) {
                com.google.android.gms.internal.zzas.zzor = javax.crypto.Cipher.getInstance("AES/CBC/PKCS5Padding");
            }
        } catch (javax.crypto.Cipher v0_4) {
            throw v0_4;
        }
        return com.google.android.gms.internal.zzas.zzor;
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.encrypt() calling method javax.crypto.Cipher.getInstance()


    public static byte[] encrypt(javax.crypto.spec.SecretKeySpec p4, byte[] p5, byte[] p6)
    {
        javax.crypto.Cipher v0 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS7Padding");
        v0.init(1, p4, new javax.crypto.spec.IvParameterSpec(p5));
        return v0.doFinal(p6);
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.decrypt() calling method javax.crypto.Cipher.getInstance()


    public static byte[] decrypt(javax.crypto.spec.SecretKeySpec p4, byte[] p5, byte[] p6)
    {
        javax.crypto.Cipher v0 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS7Padding");
        v0.init(2, p4, new javax.crypto.spec.IvParameterSpec(p5));
        return v0.doFinal(p6);
    }

Method com.google.android.gms.internal.zzas.zzd() calling method javax.crypto.Cipher.getIV()


    public String zzd(byte[] p6, byte[] p7)
    {
        if (p6.length == 16) {
            try {
            } catch (String v0_12) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_12);
            } catch (String v0_10) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_10);
            } catch (String v0_9) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_9);
            } catch (String v0_8) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_8);
            } catch (String v0_7) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_7);
            }
            this.getCipher().init(1, new javax.crypto.spec.SecretKeySpec(p6, "AES"), this.zzoq);
            String v0_2 = this.getCipher().doFinal(p7);
            java.nio.ByteBuffer v2_1 = this.getCipher().getIV();
            int v1_2 = (v0_2.length + v2_1.length);
            java.nio.ByteBuffer v3_1 = java.nio.ByteBuffer.allocate(v1_2);
            v3_1.put(v2_1).put(v0_2);
            v3_1.flip();
            String v0_5 = new byte[v1_2];
            v3_1.get(v0_5);
            return com.google.android.gms.internal.zzah.zza(v0_5, 0);
        } else {
            throw new com.google.android.gms.internal.zzas$zza(this);
        }
    }

Method com.google.android.gms.internal.zzzh.zza() calling method javax.crypto.Cipher.doFinal()


    private static String zza(javax.crypto.Cipher p4, String p5, javax.crypto.spec.SecretKeySpec p6, javax.crypto.spec.IvParameterSpec p7)
    {
        if ((p5 != null) && (p5.length() != 0)) {
            try {
                p4.init(1, p6, p7);
                return com.google.android.gms.tagmanager.zzk.zzk(p4.doFinal(p5.getBytes()));
            } catch (String v0_1) {
                String v0_3 = String.valueOf(v0_1.getMessage());
                if (v0_3.length() == 0) {
                    String v0_6 = new String("Encrypt: ");
                } else {
                    v0_6 = "Encrypt: ".concat(v0_3);
                }
                throw new RuntimeException(v0_6);
            }
        } else {
            throw new RuntimeException("Encrypt: empty input string");
        }
    }

Method com.google.android.gms.internal.zzas.zzd() calling method javax.crypto.Cipher.doFinal()


    public String zzd(byte[] p6, byte[] p7)
    {
        if (p6.length == 16) {
            try {
            } catch (String v0_12) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_12);
            } catch (String v0_10) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_10);
            } catch (String v0_9) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_9);
            } catch (String v0_8) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_8);
            } catch (String v0_7) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_7);
            }
            this.getCipher().init(1, new javax.crypto.spec.SecretKeySpec(p6, "AES"), this.zzoq);
            String v0_2 = this.getCipher().doFinal(p7);
            java.nio.ByteBuffer v2_1 = this.getCipher().getIV();
            int v1_2 = (v0_2.length + v2_1.length);
            java.nio.ByteBuffer v3_1 = java.nio.ByteBuffer.allocate(v1_2);
            v3_1.put(v2_1).put(v0_2);
            v3_1.flip();
            String v0_5 = new byte[v1_2];
            v3_1.get(v0_5);
            return com.google.android.gms.internal.zzah.zza(v0_5, 0);
        } else {
            throw new com.google.android.gms.internal.zzas$zza(this);
        }
    }

Method com.google.android.gms.internal.zzas.zzc() calling method javax.crypto.Cipher.doFinal()


    public byte[] zzc(byte[] p8, String p9)
    {
        if (p8.length == 16) {
            try {
                Throwable v0_12 = com.google.android.gms.internal.zzah.zza(p9, 0);
            } catch (Throwable v0_16) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_16);
            } catch (Throwable v0_15) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_15);
            } catch (Throwable v0_14) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_14);
            } catch (Throwable v0_13) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_13);
            } catch (Throwable v0_11) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_11);
            } catch (Throwable v0_10) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_10);
            } catch (Throwable v0_9) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_9);
            }
            if (v0_12.length > 16) {
                javax.crypto.Cipher v1_0 = java.nio.ByteBuffer.allocate(v0_12.length);
                v1_0.put(v0_12);
                v1_0.flip();
                byte[] v2_2 = new byte[16];
                Throwable v0_3 = new byte[(v0_12.length - 16)];
                v1_0.get(v2_2);
                v1_0.get(v0_3);
                this.getCipher().init(2, new javax.crypto.spec.SecretKeySpec(p8, "AES"), new javax.crypto.spec.IvParameterSpec(v2_2));
                return this.getCipher().doFinal(v0_3);
            } else {
                throw new com.google.android.gms.internal.zzas$zza(this);
            }
        } else {
            throw new com.google.android.gms.internal.zzas$zza(this);
        }
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.encrypt() calling method javax.crypto.Cipher.doFinal()


    public static byte[] encrypt(javax.crypto.spec.SecretKeySpec p4, byte[] p5, byte[] p6)
    {
        javax.crypto.Cipher v0 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS7Padding");
        v0.init(1, p4, new javax.crypto.spec.IvParameterSpec(p5));
        return v0.doFinal(p6);
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.decrypt() calling method javax.crypto.Cipher.doFinal()


    public static byte[] decrypt(javax.crypto.spec.SecretKeySpec p4, byte[] p5, byte[] p6)
    {
        javax.crypto.Cipher v0 = javax.crypto.Cipher.getInstance("AES/CBC/PKCS7Padding");
        v0.init(2, p4, new javax.crypto.spec.IvParameterSpec(p5));
        return v0.doFinal(p6);
    }

Method com.google.android.gms.internal.zzzh.zza() calling method javax.crypto.spec.SecretKeySpec.<init>()


    protected varargs com.google.android.gms.internal.zzabh zza(com.google.android.gms.internal.zzuw p8, com.google.android.gms.internal.zzabh[] p9)
    {
        String v0_8;
        if (p9 == null) {
            v0_8 = 0;
        } else {
            v0_8 = 1;
        }
        String v0_0;
        com.google.android.gms.common.internal.zzaa.zzaj(v0_8);
        if (p9.length < 3) {
            v0_0 = 0;
        } else {
            v0_0 = 1;
        }
        String v0_7;
        com.google.android.gms.common.internal.zzaa.zzaj(v0_0);
        String v2_1 = com.google.android.gms.internal.zzvi.zzd(p9[0]);
        int v3_0 = com.google.android.gms.internal.zzvi.zzd(p9[1]);
        String v4 = com.google.android.gms.internal.zzvi.zzd(p9[2]);
        if (p9.length >= 4) {
            v0_7 = com.google.android.gms.internal.zzvi.zzd(p9[3]);
        } else {
            v0_7 = "AES/CBC/NoPadding";
        }
        javax.crypto.spec.SecretKeySpec v5_2 = com.google.android.gms.internal.zzzh.zzbuy.matcher(v0_7);
        if (v5_2.matches()) {
            try {
                String v0_10 = com.google.android.gms.internal.zzzh.zza(javax.crypto.Cipher.getInstance(v0_7), v2_1, new javax.crypto.spec.SecretKeySpec(v3_0.getBytes(), v5_2.group(1)), new javax.crypto.spec.IvParameterSpec(v4.getBytes()));
                return new com.google.android.gms.internal.zzabp(v0_10);
            } catch (RuntimeException v1) {
                String v0_11 = String.valueOf(v0_10);
                if (v0_11.length() == 0) {
                    String v0_13 = new String("Encrypt: invalid transformation:");
                } else {
                    v0_13 = "Encrypt: invalid transformation:".concat(v0_11);
                }
                throw new RuntimeException(v0_13);
            } catch (RuntimeException v1) {
            }
        } else {
            String v0_17;
            String v0_15 = String.valueOf(v0_7);
            if (v0_15.length() == 0) {
                v0_17 = new String("Encrypt: invalid transformation:");
            } else {
                v0_17 = "Encrypt: invalid transformation:".concat(v0_15);
            }
            throw new RuntimeException(v0_17);
        }
    }

Method com.google.android.gms.internal.zzas.zzd() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public String zzd(byte[] p6, byte[] p7)
    {
        if (p6.length == 16) {
            try {
            } catch (String v0_12) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_12);
            } catch (String v0_10) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_10);
            } catch (String v0_9) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_9);
            } catch (String v0_8) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_8);
            } catch (String v0_7) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_7);
            }
            this.getCipher().init(1, new javax.crypto.spec.SecretKeySpec(p6, "AES"), this.zzoq);
            String v0_2 = this.getCipher().doFinal(p7);
            java.nio.ByteBuffer v2_1 = this.getCipher().getIV();
            int v1_2 = (v0_2.length + v2_1.length);
            java.nio.ByteBuffer v3_1 = java.nio.ByteBuffer.allocate(v1_2);
            v3_1.put(v2_1).put(v0_2);
            v3_1.flip();
            String v0_5 = new byte[v1_2];
            v3_1.get(v0_5);
            return com.google.android.gms.internal.zzah.zza(v0_5, 0);
        } else {
            throw new com.google.android.gms.internal.zzas$zza(this);
        }
    }

Method com.google.android.gms.internal.zzas.zzc() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public byte[] zzc(byte[] p8, String p9)
    {
        if (p8.length == 16) {
            try {
                Throwable v0_12 = com.google.android.gms.internal.zzah.zza(p9, 0);
            } catch (Throwable v0_16) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_16);
            } catch (Throwable v0_15) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_15);
            } catch (Throwable v0_14) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_14);
            } catch (Throwable v0_13) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_13);
            } catch (Throwable v0_11) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_11);
            } catch (Throwable v0_10) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_10);
            } catch (Throwable v0_9) {
                throw new com.google.android.gms.internal.zzas$zza(this, v0_9);
            }
            if (v0_12.length > 16) {
                javax.crypto.Cipher v1_0 = java.nio.ByteBuffer.allocate(v0_12.length);
                v1_0.put(v0_12);
                v1_0.flip();
                byte[] v2_2 = new byte[16];
                Throwable v0_3 = new byte[(v0_12.length - 16)];
                v1_0.get(v2_2);
                v1_0.get(v0_3);
                this.getCipher().init(2, new javax.crypto.spec.SecretKeySpec(p8, "AES"), new javax.crypto.spec.IvParameterSpec(v2_2));
                return this.getCipher().doFinal(v0_3);
            } else {
                throw new com.google.android.gms.internal.zzas$zza(this);
            }
        } else {
            throw new com.google.android.gms.internal.zzas$zza(this);
        }
    }

Method com.deniz.dijitaldeniz.wallet.helper.EncryptionHelper.sha256HMACEncryptionKeyAndValue() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static String sha256HMACEncryptionKeyAndValue(String p7, String p8)
    {
        try {
            javax.crypto.Mac v3 = javax.crypto.Mac.getInstance("HmacSHA256");
            try {
                javax.crypto.spec.SecretKeySpec v1 = new javax.crypto.spec.SecretKeySpec(p7.getBytes("UTF-8"), "HmacSHA256");
                try {
                    v3.init(v1);
                    try {
                        int v4_6 = android.util.Base64.encodeToString(v3.doFinal(p8.getBytes("UTF-8")), 0).replaceAll("\n", "");
                    } catch (java.io.UnsupportedEncodingException v0_2) {
                        v0_2.printStackTrace();
                        v4_6 = 0;
                    }
                    return v4_6;
                } catch (java.io.UnsupportedEncodingException v0_1) {
                    v0_1.printStackTrace();
                }
            } catch (java.io.UnsupportedEncodingException v0_0) {
                v0_0.printStackTrace();
            }
        } catch (java.io.UnsupportedEncodingException v0_3) {
            v0_3.printStackTrace();
        }
    }

Method com.deniz.dijitaldeniz.helper.volley.HmacSha1Signature.calculateRFC2104HMAC() calling method javax.crypto.spec.SecretKeySpec.<init>()


    public static String calculateRFC2104HMAC(String p5, String p6)
    {
        try {
            javax.crypto.spec.SecretKeySpec v2_1 = new javax.crypto.spec.SecretKeySpec(p6.getBytes(), "HmacSHA256");
            javax.crypto.Mac v1 = javax.crypto.Mac.getInstance("HmacSHA256");
            v1.init(v2_1);
            String v3_2 = android.util.Base64.encodeToString(v1.doFinal(p5.getBytes()), 2);
        } catch (Exception v0) {
            v0.printStackTrace();
            com.deniz.dijitaldeniz.helper.volley.VPSharedInstance.getInstance().context.finish();
            v3_2 = "";
        }
        return v3_2;
    }

Method com.deniz.dijitaldeniz.helper.volley.AESCrypt.generateKey() calling method javax.crypto.spec.SecretKeySpec.<init>()


    private static javax.crypto.spec.SecretKeySpec generateKey(String p6)
    {
        java.security.MessageDigest v1 = java.security.MessageDigest.getInstance("SHA-256");
        byte[] v0 = p6.getBytes("UTF-8");
        v1.update(v0, 0, v0.length);
        v1.digest();
        return new javax.crypto.spec.SecretKeySpec(v0, "AES");
    }