public interface IDataChannelChipher
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.
|
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.
|
int setEncryptionKeysAES(byte[] keys)
keys
- Array which contains key(s) (send and receive key)int setEncryptionKeysAES(byte[] keys, int offset, int keylen)
keys
- Array which contains key(s) (send and receive key)byte[] getKeys()
void encryptGCM1(byte[] from, int ifrom, byte[] to, int ito, int len) throws java.lang.Exception
java.lang.Exception
void decryptGCM2(byte[] from, int ifrom, byte[] to, int ito, int len) throws java.lang.Exception
java.lang.Exception
Copyright © 2023. All rights reserved.