public class SRTPCipherCTROpenSSL extends SRTPCipherCTR
BLKLEN
Constructor and Description |
---|
SRTPCipherCTROpenSSL() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
init(byte[] key)
(Re)Initialize the cipher with key
|
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
|
checkProcessArgs
public void init(byte[] key)
init
in class SRTPCipherCTR
key
- the key. key.length == BLKLENprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void process(byte[] data, int off, int len, byte[] iv)
process
in class SRTPCipherCTR
data
- byte array to be processedoff
- the offsetlen
- the lengthiv
- initial value of the counter (can be modified).
iv.length == BLKLEN
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.