Package kala.compress.archivers.sevenz
Class AES256SHA256Decoder
- java.lang.Object
-
- kala.compress.archivers.sevenz.AbstractCoder
-
- kala.compress.archivers.sevenz.AES256SHA256Decoder
-
final class AES256SHA256Decoder extends AbstractCoder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAES256SHA256Decoder.AES256SHA256DecoderInputStreamprivate static classAES256SHA256Decoder.AES256SHA256DecoderOutputStream
-
Constructor Summary
Constructors Constructor Description AES256SHA256Decoder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.io.InputStreamdecode(java.lang.String archiveName, java.io.InputStream in, long uncompressedLength, Coder coder, byte[] passwordBytes, int maxMemoryLimitInKb)Decodes using stream that reads from in using the configured coder and password.(package private) java.io.OutputStreamencode(java.io.OutputStream out, java.lang.Object options)Encodes using a stream that writes to out using the given configuration.(package private) byte[]getOptionsAsProperties(java.lang.Object options)Gets property bytes to write in a Folder block.(package private) static byte[]sha256Password(byte[] password, int numCyclesPower, byte[] salt)(package private) static byte[]sha256Password(char[] password, int numCyclesPower, byte[] salt)(package private) static byte[]utf16Decode(char[] chars)Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset(package private) static byte[]utf16Decode(java.lang.String string)Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset-
Methods inherited from class kala.compress.archivers.sevenz.AbstractCoder
getOptionsFromCoder, isOptionInstance, toInt
-
-
-
-
Method Detail
-
sha256Password
static byte[] sha256Password(byte[] password, int numCyclesPower, byte[] salt)
-
sha256Password
static byte[] sha256Password(char[] password, int numCyclesPower, byte[] salt)
-
utf16Decode
static byte[] utf16Decode(char[] chars)
Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset- Parameters:
chars- characters to encode- Returns:
- encoded characters
- Since:
- 1.23
-
utf16Decode
static byte[] utf16Decode(java.lang.String string)
Convenience method that encodes Unicode characters into bytes in UTF-16 (little-endian byte order) charset- Parameters:
string- characters to encode- Returns:
- encoded characters
- Since:
- 1.27.1-0
-
decode
java.io.InputStream decode(java.lang.String archiveName, java.io.InputStream in, long uncompressedLength, Coder coder, byte[] passwordBytes, int maxMemoryLimitInKb)Description copied from class:AbstractCoderDecodes using stream that reads from in using the configured coder and password.- Specified by:
decodein classAbstractCoder- Returns:
- a stream that reads from in using the configured coder and password.
-
encode
java.io.OutputStream encode(java.io.OutputStream out, java.lang.Object options) throws java.io.IOExceptionDescription copied from class:AbstractCoderEncodes using a stream that writes to out using the given configuration.- Overrides:
encodein classAbstractCoder- Returns:
- a stream that writes to out using the given configuration.
- Throws:
java.io.IOException- Optionally thrown by subclassses.
-
getOptionsAsProperties
byte[] getOptionsAsProperties(java.lang.Object options) throws java.io.IOExceptionDescription copied from class:AbstractCoderGets property bytes to write in a Folder block.- Overrides:
getOptionsAsPropertiesin classAbstractCoder- Returns:
- property bytes to write in a Folder block.
- Throws:
java.io.IOException- Optionally thrown by subclassses.
-
-