public final class DataChannelCipherSDK extends java.lang.Object implements IDataChannelChipher
| Constructor and Description |
|---|
DataChannelCipherSDK() |
DataChannelCipherSDK(java.lang.String provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
decryptGCM2(byte[] from,
int ifrom,
byte[] to,
int ito,
int len) |
void |
encryptGCM1(byte[] from,
int ifrom,
byte[] to,
int ito,
int len) |
byte[] |
getKeys()
Returns the currently used key(s) for encryption/decryption.
|
static int |
getMACSize() |
int |
setEncryptionKeysAES(byte[] keys)
Set both keys to different values, if keys.length == 2 * KEY_SIZE, else
set both keys to the same value.
|
int |
setEncryptionKeysAES(byte[] keys,
int offset,
int keylen)
Set both keys to different values, if keys.length == 2 * KEY_SIZE, else
set both keys to the same value.
|
public DataChannelCipherSDK()
public DataChannelCipherSDK(java.lang.String provider)
public int setEncryptionKeysAES(byte[] keys)
IDataChannelChiphersetEncryptionKeysAES in interface IDataChannelChipherkeys - Array which contains key(s) (send and receive key)public int setEncryptionKeysAES(byte[] keys,
int offset,
int keylen)
IDataChannelChiphersetEncryptionKeysAES in interface IDataChannelChipherkeys - Array which contains key(s) (send and receive key)public byte[] getKeys()
IDataChannelChiphergetKeys in interface IDataChannelChipherpublic void encryptGCM1(byte[] from,
int ifrom,
byte[] to,
int ito,
int len)
throws java.lang.Exception
encryptGCM1 in interface IDataChannelChipherjava.lang.Exceptionpublic void decryptGCM2(byte[] from,
int ifrom,
byte[] to,
int ito,
int len)
throws java.lang.Exception
decryptGCM2 in interface IDataChannelChipherjava.lang.Exceptionpublic static int getMACSize()
Copyright © 2023. All rights reserved.