de.idyl.winzipaes.impl.AESCryptoBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of winzipaes Show documentation
Show all versions of winzipaes Show documentation
Read/Write WinZip(C) 256-Bit AES mode files.
The newest version!
package de.idyl.winzipaes.impl;
/**
* Base class for crypto "adapters" to support aes operations
* needed for winzip aes.
*
* @author [email protected]
*/
public class AESCryptoBase {
public static final int KEY_SIZE_BIT = 256;
public static final int KEY_SIZE_BYTE = KEY_SIZE_BIT / 8;
public static final int ITERATION_COUNT = 1000;
// --------------------------------------------------------------------------
protected byte[] saltBytes;
protected byte[] cryptoKeyBytes;
protected byte[] authenticationCodeBytes;
protected byte[] pwVerificationBytes;
protected int blockSize;
protected int nonce;
}