abstract class SRTPCipherCTR
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BLKLEN |
Constructor and Description |
---|
SRTPCipherCTR() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkProcessArgs(byte[] data,
int off,
int len,
byte[] iv)
Check the validity of process function arguments
|
abstract void |
init(byte[] key)
(Re)Initialize the cipher with key
|
abstract void |
process(byte[] data,
int off,
int len,
byte[] iv)
Process (encrypt/decrypt) data from offset for len bytes iv can be
modified by this function but you MUST never reuse an IV so it's ok
|
protected static final int BLKLEN
public abstract void init(byte[] key)
key
- the key. key.length == BLKLENpublic abstract void process(byte[] data, int off, int len, byte[] iv)
data
- byte array to be processedoff
- the offsetlen
- the lengthiv
- initial value of the counter (can be modified).
iv.length == BLKLENprotected static void checkProcessArgs(byte[] data, int off, int len, byte[] iv)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.