Code example for IllegalBlockSizeException

0
        } 
        catch (BadPaddingException e)
        { 
            throw new IllegalBlockSizeException(e.getMessage());
        } 
    } 
 
    protected Key engineUnwrap(
        byte[]  wrappedKey,
        String  wrappedKeyAlgorithm,
        int     wrappedKeyType)
    // BEGIN android-removed 
    // throws InvalidKeyException 
    // END android-removed 
    // BEGIN android-added 
    throws InvalidKeyException, NoSuchAlgorithmException 
    // END android-added 
    { 
        byte[] encoded;
        try 
        {