METHOD_0 ( ) { final java . lang . String IDENT_0 = STRING_0 0 ; org . json . JSONObject json = com . google . crypto . IDENT_1 . IDENT_2 . METHOD_1 ( STRING_1 5 ) ; java . util . Set < java . lang . String > exceptions = new java . util . IDENT_3 < java . lang . String > ( ) ; java . lang . String IDENT_4 = json . getString ( STRING_1 7 ) ; if ( ! ( IDENT_4 . equals ( IDENT_0 ) ) ) { System . out . METHOD_2 ( STRING_1 9 , IDENT_0 , IDENT_4 ) ; } int errors = 0 ; org . json . IDENT_5 IDENT_6 = json . METHOD_3 ( STRING_1 2 ) ; for ( int i = 0 ; i < ( IDENT_6 . length ( ) ) ; i ++ ) { org . json . JSONObject group = IDENT_6 . METHOD_4 ( i ) ; org . json . IDENT_5 tests = group . METHOD_3 ( STRING_0 2 ) ; for ( int j = 0 ; j < ( tests . length ( ) ) ; j ++ ) { org . json . JSONObject IDENT_7 = tests . METHOD_4 ( j ) ; int IDENT_8 = IDENT_7 . METHOD_5 ( STRING_1 6 ) ; java . lang . String tc = ( ( STRING_0 3 + IDENT_8 ) + STRING_1 3 ) + ( IDENT_7 . getString ( STRING_1 0 ) ) ; byte [ ] key = com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . decode ( IDENT_7 . getString ( STRING_1 ) ) ; byte [ ] data = com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . decode ( IDENT_7 . getString ( STRING_2 ) ) ; byte [ ] expected = com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . decode ( IDENT_7 . getString ( STRING_0 6 ) ) ; java . lang . String result = IDENT_7 . getString ( STRING_0 ) ; com . google . crypto . IDENT_1 . IDENT_11 IDENT_12 ; try { IDENT_12 = new com . google . crypto . IDENT_1 . IDENT_9 . METHOD_6 ( key ) ; } catch ( java . security . IDENT_13 ex ) { if ( ( ( key . length ) == 16 ) || ( ( key . length ) == INT_0 ) ) { System . out . METHOD_2 ( STRING_3 , tc ) ; System . out . println ( ex . toString ( ) ) ; errors ++ ; } continue ; } try { byte [ ] IDENT_14 = IDENT_12 . METHOD_7 ( data ) ; boolean eq = com . google . crypto . IDENT_1 . IDENT_15 . METHOD_8 ( expected , IDENT_14 ) ; if ( result . equals ( STRING_1 8 ) ) { if ( eq ) { System . out . METHOD_2 ( STRING_4 , tc ) ; errors ++ ; } } else { if ( ! eq ) { System . out . METHOD_2 ( STRING_5 , tc , com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . encode ( IDENT_14 ) ) ; errors ++ ; } } } catch ( java . security . IDENT_13 ex ) { if ( result . equals ( STRING_0 1 ) ) { System . out . METHOD_2 ( STRING_6 , tc ) ; errors ++ ; } } catch ( java . lang . Exception ex ) { System . out . METHOD_2 ( STRING_1 1 , tc , ex ) ; errors ++ ; } try { byte [ ] IDENT_16 = IDENT_12 . METHOD_9 ( expected ) ; boolean eq = com . google . crypto . IDENT_1 . IDENT_15 . METHOD_8 ( data , IDENT_16 ) ; if ( result . equals ( STRING_1 8 ) ) { System . out . METHOD_2 ( STRING_7 , tc , com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . encode ( IDENT_16 ) ) ; errors ++ ; } else { if ( ! eq ) { System . out . METHOD_2 ( STRING_0 5 , com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . encode ( data ) , com . google . crypto . IDENT_1 . IDENT_9 . IDENT_10 . encode ( IDENT_16 ) ) ; errors ++ ; } } } catch ( java . security . IDENT_13 ex ) { exceptions . add ( ex . toString ( ) ) ; if ( result . equals ( STRING_0 1 ) ) { System . out . METHOD_2 ( STRING_0 4 , tc ) ; errors ++ ; } } catch ( java . lang . Exception ex ) { System . out . METHOD_2 ( STRING_8 , tc , ex ) ; exceptions . add ( ex . toString ( ) ) ; errors ++ ; } } } System . out . METHOD_2 ( STRING_1 4 , exceptions . size ( ) ) ; for ( java . lang . String ex : exceptions ) { System . out . println ( ex ) ; } "<AssertPlaceHolder>" ; } size ( ) { return IDENT_17 ; }
org . junit . Assert . assertEquals ( 0 , errors )