public class SRTPCipherCTRJava extends SRTPCipherCTR
BLKLEN
Constructor and Description |
---|
SRTPCipherCTRJava(org.bouncycastle.crypto.BlockCipher cipher) |
Modifier and Type | Method and Description |
---|---|
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 SRTPCipherCTRJava(org.bouncycastle.crypto.BlockCipher cipher)
public void init(byte[] key)
init
in class SRTPCipherCTR
key
- the key. key.length == BLKLENpublic 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.