public final class SymCipherNoEncryption extends java.lang.Object implements ISymCipher
Constructor and Description |
---|
SymCipherNoEncryption() |
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) |
public int setEncryptionKeyAES(byte[] key)
ISymCipher
setEncryptionKeyAES
in interface ISymCipher
public int setEncryptionKeyAES(byte[] key, int offset, int len)
setEncryptionKeyAES
in interface ISymCipher
key
- byte[]offset
- intlen
- int if len==16 --> only the key is set; if len==32 --> key and
IV is setpublic int setEncryptionKeysAES(byte[] keys)
setEncryptionKeysAES
in interface ISymCipher
keys
- byte[]public byte[] getKeys()
getKeys
in interface ISymCipher
public void setIV2(byte[] buff)
setIV2
in interface ISymCipher
public int encryptAES1(byte[] from, int ifrom, byte[] to, int ito, int len)
encryptAES1
in interface ISymCipher
public int encryptAES2(byte[] buff)
encryptAES2
in interface ISymCipher
Copyright © 2023. All rights reserved.