class AesCtr extends ContentCryptoScheme
AES_CBC, AES_CTR, AES_GCM, MAX_CBC_BYTES, MAX_CTR_BYTES, MAX_GCM_BLOCKS, MAX_GCM_BYTES
Constructor and Description |
---|
AesCtr() |
Modifier and Type | Method and Description |
---|---|
(package private) byte[] |
adjustIV(byte[] iv,
long byteOffset) |
private byte[] |
computeJ0(byte[] nonce)
See
NIST Special Publication 800-38D. for the definition of J0, the
"pre-counter block".
|
(package private) int |
getBlockSizeInBytes() |
(package private) java.lang.String |
getCipherAlgorithm() |
(package private) int |
getIVLengthInBytes() |
(package private) java.lang.String |
getKeyGeneratorAlgorithm() |
(package private) int |
getKeyLengthInBits() |
(package private) long |
getMaxPlaintextSize()
Returns the maximum size of the plaintext that can be encrypted using
the current scheme per a single secret key; or -1 if there is effectively
no limit.
|
createAuxillaryCipher, createCipherLite, createCipherLite, fromCEKAlgo, fromCEKAlgo, getKeySpec, getSpecificCipherProvider, getTagLengthInBits, incrementBlocks, newCipherLite, toString
java.lang.String getKeyGeneratorAlgorithm()
getKeyGeneratorAlgorithm
in class ContentCryptoScheme
java.lang.String getCipherAlgorithm()
getCipherAlgorithm
in class ContentCryptoScheme
int getKeyLengthInBits()
getKeyLengthInBits
in class ContentCryptoScheme
int getBlockSizeInBytes()
getBlockSizeInBytes
in class ContentCryptoScheme
int getIVLengthInBytes()
getIVLengthInBytes
in class ContentCryptoScheme
long getMaxPlaintextSize()
ContentCryptoScheme
getMaxPlaintextSize
in class ContentCryptoScheme
byte[] adjustIV(byte[] iv, long byteOffset)
adjustIV
in class ContentCryptoScheme
private byte[] computeJ0(byte[] nonce)
Reference: GCMBlockCipher.java