static String encryptFraudMetadata(JSONObject jsonobject, String s, Tracer tracer)
 {
     if (jsonobject == null)
     {
         Object obj;
         byte abyte0[];
         Object obj1;
         byte abyte1[];
         try
         {
             MAPLog.e(TAG, "The metadata should not be null!");
         }
         // Misplaced declaration of an exception variable
         catch (JSONObject jsonobject)
         {
             MAPLog.logAndReportError(TAG, tracer, (new StringBuilder("Exception happened when encrypting the metadata:")).append(jsonobject.getClass().getName()).toString(), (new StringBuilder("FraudMetaDataEncryption:Exception:")).append(jsonobject.getClass().getName()).toString(), jsonobject);
             return null;
         }
         return null;
     }
     if (s != null)
     {
         break MISSING_BLOCK_LABEL_31;
     }
     MAPLog.logAndReportError(TAG, tracer, "DSN is null, cannot encrypt the fraud metadata", "FraudMetaDataEncryption:DsnMissing");
     return null;
     obj = TAG;
     jsonobject = jsonobject.toString();
     obj = new ByteArrayOutputStream();
     obj1 = new GZIPOutputStream(((java.io.OutputStream) (obj)));
     ((GZIPOutputStream) (obj1)).write(jsonobject.getBytes("UTF-8"));
     ((GZIPOutputStream) (obj1)).close();
     jsonobject = ((ByteArrayOutputStream) (obj)).toByteArray();
     obj = Cipher.getInstance("AES/CBC/PKCS5Padding");
     ((Cipher) (obj)).init(1, generateKey(s, "AES/CBC/PKCS7Padding"));
     jsonobject = ((Cipher) (obj)).doFinal(jsonobject);
     abyte0 = ((Cipher) (obj)).getIV();
     obj1 = Mac.getInstance("HmacSHA256");
     ((Mac) (obj1)).init(generateKey(s, "HmacSHA256"));
     ((Mac) (obj1)).update(abyte0);
     ((Mac) (obj1)).update(jsonobject);
     s = ((Mac) (obj1)).doFinal();
     abyte1 = new byte[jsonobject.length + 25];
     abyte1[0] = 0;
     System.arraycopy(s, 0, abyte1, 1, 8);
     System.arraycopy(abyte0, 0, abyte1, 9, 16);
     System.arraycopy(jsonobject, 0, abyte1, 25, jsonobject.length);
     jsonobject = Base64.encodeToString(abyte1, 2);
     s = TAG;
     return jsonobject;
 }