|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmemetic.crypto.RTPCrypt
public class RTPCrypt
Performs RTP Encryption using a given encryption standard
| Constructor Summary | |
|---|---|
RTPCrypt(Crypt crypter)
Creates a new RTPCrypt |
|
| Method Summary | |
|---|---|
int |
decryptCtrl(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
Decrypts the given RTCP data |
int |
decryptData(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
Decrypts the given RTP data |
int |
encryptCtrl(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
Encrypts the given RTCP data |
int |
encryptData(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
Encrypts the given RTP data |
int |
getBlockSize()
|
int |
getDecryptOutputSize(int inputSize)
|
int |
getEncryptOutputSize(int inputSize)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTPCrypt(Crypt crypter)
crypter - The encryption standard to use| Method Detail |
|---|
public int encryptCtrl(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
throws java.security.InvalidKeyException,
javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidAlgorithmParameterException
input - offset - length - output - outOffset -
java.security.InvalidAlgorithmParameterException
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
java.security.InvalidKeyException
public int encryptData(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
throws java.security.InvalidKeyException,
javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidAlgorithmParameterException
input - offset - length - output - outOffset -
java.security.InvalidAlgorithmParameterException
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
java.security.InvalidKeyException
public int decryptCtrl(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
throws java.security.InvalidKeyException,
javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidAlgorithmParameterException
input - offset - length - output - outOffset -
java.security.InvalidAlgorithmParameterException
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
java.security.InvalidKeyException
public int decryptData(byte[] input,
int offset,
int length,
byte[] output,
int outOffset)
throws java.security.InvalidKeyException,
javax.crypto.ShortBufferException,
javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException,
java.security.InvalidAlgorithmParameterException
input - offset - length - output - outOffset -
java.security.InvalidAlgorithmParameterException
javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.ShortBufferException
java.security.InvalidKeyExceptionpublic int getEncryptOutputSize(int inputSize)
Crypt.getEncryptOutputSize(int)public int getDecryptOutputSize(int inputSize)
Crypt.getDecryptOutputSize(int)public int getBlockSize()
Crypt.getBlockSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||