public class GenericDecryptionTool extends DecryptionTool
DecryptionTool.DecryptionSetup| Constructor and Description |
|---|
GenericDecryptionTool(DecryptionTool.DecryptionSetup ds) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptFirstBytes(byte[] bits)
Decrypts the beginning of the file and returns its clear-text binary representation.
|
java.io.InputStream |
decryptInputStream(java.io.InputStream is)
Wraps the source InputStream into deciphering input stream
|
get, isTransparent, makechecksum_impl, checksum, makeSchema, readAll_impl, readAll, remove_impl, remove, remove, remove, remove, writeAll_impl, writeAllasBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSONpublic GenericDecryptionTool(DecryptionTool.DecryptionSetup ds)
public byte[] decryptFirstBytes(byte[] bits)
DecryptionTooldecryptFirstBytes in class DecryptionToolbits - the first chunk of data of the datafile. The input byte array can contain zero-bytes padding (eg. case of
DEFLATE compression in Zip files, the decompressed data can be smaller than the source chunk).
The implementation of the method should discard the padding (all zero bytes at the end of the array).public java.io.InputStream decryptInputStream(java.io.InputStream is)
DecryptionTooldecryptInputStream in class DecryptionToolis - InputStream created by ByteVec (H2O-specific behavior is expected!)