public class TorStreamCipher extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_LEN |
| Modifier and Type | Method and Description |
|---|---|
static TorStreamCipher |
createFromKeyBytes(byte[] keyBytes) |
static TorStreamCipher |
createFromKeyBytesWithIV(byte[] keyBytes,
byte[] iv) |
static TorStreamCipher |
createWithRandomKey() |
void |
encrypt(byte[] data) |
void |
encrypt(byte[] data,
int offset,
int length) |
byte[] |
getKeyBytes() |
public static final int KEY_LEN
public static TorStreamCipher createWithRandomKey()
public static TorStreamCipher createFromKeyBytes(byte[] keyBytes)
public static TorStreamCipher createFromKeyBytesWithIV(byte[] keyBytes, byte[] iv)
public void encrypt(byte[] data)
public void encrypt(byte[] data,
int offset,
int length)
public byte[] getKeyBytes()
Copyright © 2015. All rights reserved.