public class RC4Encryption extends Object
| Constructor and Description |
|---|
RC4Encryption(byte[] key)
Constructor from encryption key.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
process(byte[] data)
Encrypts or decrypts passed data with use of current inner state of
encryptor.
|
byte[] |
process(byte[] data,
int offset,
int size)
Encrypts or decrypts passed data with use of current inner state of
encryptor.
|
void |
reset()
Resets inner state of encryptor to default.
|
public RC4Encryption(byte[] key)
key - is encryption key.public byte[] process(byte[] data)
data - is data to process.public byte[] process(byte[] data,
int offset,
int size)
data - is data to process.offset - is offset of beginning of data to process.size - is amount of bytes to process.public void reset()
Copyright © 2015–2018 The veraPDF Consortium. All rights reserved.