public class AESEncrypterBC extends AESCryptoBase implements AESEncrypter
ITERATION_COUNT, KEY_SIZE_BIT, KEY_SIZE_BYTE
Constructor and Description |
---|
AESEncrypterBC(byte[] pwBytes)
Setup AES encryption based on pwBytes using WinZipAES approach
with SALT and pwVerification bytes based on password+salt.
|
Modifier and Type | Method and Description |
---|---|
void |
encrypt(byte[] in,
int length)
perform pseudo "in-place" encryption
|
byte[] |
getFinalAuthentication()
10 bytes
|
byte[] |
getPwVerification()
2 bytes for password verification set in constructor
|
byte[] |
getSalt()
16 bytes (AES-256) set in constructor
|
public AESEncrypterBC(byte[] pwBytes) throws java.util.zip.ZipException
java.util.zip.ZipException
public void encrypt(byte[] in, int length)
encrypt
in interface AESEncrypter
public byte[] getSalt()
getSalt
in interface AESEncrypter
public byte[] getPwVerification()
getPwVerification
in interface AESEncrypter
public byte[] getFinalAuthentication()
getFinalAuthentication
in interface AESEncrypter