question: public final void test_ROUNDTRIP_GetKeySpecKeyProvider02 ( ) { boolean performed = false ; for ( int i = 0 ; i < algName . length ; i ++ ) { for ( int l = 0 ; l < provider . length ; l ++ ) { if ( provider [ l ] == null ) { continue ; } TestDataGenerator g ; try { g = new TestDataGenerator ( algName [ i ] [ 0 ] , algName [ i ] [ 1 ] , privateKeyInfoDamaged , provider [ l ] ) ; } catch ( TestDataGenerator . AllowedFailure allowedFailure ) { continue ; } try { EncryptedPrivateKeyInfo epki ; if ( g . ap ( ) == null ) { epki = new EncryptedPrivateKeyInfo ( algName [ i ] [ 0 ] , g . ct ( ) ) ; } else { epki = new EncryptedPrivateKeyInfo ( g . ap ( ) , g . ct ( ) ) ; } try { epki . getKeySpec ( g . pubK ( ) == null ? g . k ( ) : g . pubK ( ) , provider [ l ] ) ; fail ( algName [ i ] [ 0 ] + ", " + algName [ i ] [ 1 ] ) ; } catch ( InvalidKeyException e ) { } performed = true ; } catch ( NoSuchAlgorithmException allowedFailure ) { } } } assertTrue ( "Test not performed" , performed ) ; }
target:  Encrypted data contains invalid PKCS8 key info encoding