finally {
cipherStream.close();
}
}
catch (InvalidKeyException e) {
throw new WrappedIOException(e);
}
catch (InvalidAlgorithmParameterException e) {
throw new WrappedIOException(e);
}
catch (NoSuchAlgorithmException e) {
throw new WrappedIOException(e);
}
catch (NoSuchPaddingException e) {
throw new WrappedIOException(e);
}
}
else {
rc4.setKey( finalKey );
rc4.write( data, output );