限定符和类型 | 字段和说明 |
---|---|
static CryptoScheme |
AES_CTR |
static int |
BLOCK_SIZE |
构造器和说明 |
---|
CryptoScheme() |
限定符和类型 | 方法和说明 |
---|---|
abstract byte[] |
adjustIV(byte[] iv,
long dataStartPos) |
CryptoCipher |
createCryptoCipher(SecretKey cek,
byte[] iv,
int cipherMode,
Provider provider) |
static CryptoScheme |
fromCEKAlgo(String cekAlgo) |
abstract String |
getContentChiperAlgorithm() |
abstract int |
getContentChiperIVLength() |
abstract String |
getKeyGeneratorAlgorithm() |
abstract int |
getKeyLengthInBits() |
static byte[] |
incrementBlocks(byte[] counter,
long blockDelta)
Increment the rightmost 64 bits of a 16-byte counter by the specified delta.
|
CryptoCipher |
newCryptoCipher(Cipher cipher,
SecretKey cek,
int cipherMode)
This is a factory method to create CryptoCipher.
|
public static final int BLOCK_SIZE
public static final CryptoScheme AES_CTR
public abstract String getKeyGeneratorAlgorithm()
public abstract int getKeyLengthInBits()
public abstract String getContentChiperAlgorithm()
public abstract int getContentChiperIVLength()
public abstract byte[] adjustIV(byte[] iv, long dataStartPos)
public CryptoCipher newCryptoCipher(Cipher cipher, SecretKey cek, int cipherMode)
public CryptoCipher createCryptoCipher(SecretKey cek, byte[] iv, int cipherMode, Provider provider)
public static byte[] incrementBlocks(byte[] counter, long blockDelta)
counter
- a 16-byte counter.blockDelta
- the number of blocks (16-byte) to incrementpublic static CryptoScheme fromCEKAlgo(String cekAlgo)
Copyright © 2020. All Rights Reserved.