public interface ISymCipher
| Modifier and Type | Method and Description |
|---|---|
int |
encryptAES1(byte[] from,
int ifrom,
byte[] to,
int ito,
int len) |
int |
encryptAES2(byte[] buff) |
byte[] |
getKeys()
Returns the currently used key(s) for encryption.
|
int |
setEncryptionKeyAES(byte[] key)
Sets the AES encryption key to the value in the key buffer.
|
int |
setEncryptionKeyAES(byte[] key,
int offset,
int len) |
int |
setEncryptionKeysAES(byte[] keys)
Set both keys to different value, if keys.length==2* KEY_SIZE, else set
both keys to the same value
|
void |
setIV2(byte[] buff) |
int setEncryptionKeyAES(byte[] key)
key - int setEncryptionKeyAES(byte[] key,
int offset,
int len)
key - byte[]offset - intlen - int if len==16 --> only the key is set; if len==32 --> key and
IV is setint setEncryptionKeysAES(byte[] keys)
keys - byte[]byte[] getKeys()
void setIV2(byte[] buff)
int encryptAES1(byte[] from,
int ifrom,
byte[] to,
int ito,
int len)
int encryptAES2(byte[] buff)
Copyright © 2023. All rights reserved.