public abstract class BlockCipherProvider extends OfficeCryptCodecHandler
OfficeCryptCodecHandler.Phase| Modifier and Type | Field and Description |
|---|---|
private org.bouncycastle.crypto.BufferedBlockCipher |
_cipher |
CIPHER_DECRYPT_MODE, CIPHER_ENCRYPT_MODE| Constructor and Description |
|---|
BlockCipherProvider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecodeInline() |
boolean |
canEncodePartialPage() |
protected void |
decodePageImpl(java.nio.ByteBuffer inPage,
java.nio.ByteBuffer outPage,
int pageNumber) |
java.nio.ByteBuffer |
encodePageImpl(java.nio.ByteBuffer buffer,
int pageNumber,
int pageOffset) |
protected org.bouncycastle.crypto.BufferedBlockCipher |
getBlockCipher() |
protected org.bouncycastle.crypto.BlockCipher |
initCipher() |
protected org.bouncycastle.crypto.BlockCipher |
initCryptCipher() |
protected org.bouncycastle.crypto.BlockCipher |
initPwdCipher() |
protected void |
reset() |
bits2bytes, create, decodePage, encodePage, getDigest, getPhase, initCryptDigest, initDigest, initPwdDigest, int2bytes, iterateHash, verifyPasswordapplyPageNumber, blockDecrypt, blockDecryptBytes, blockEncrypt, computeCipherParams, decryptBytes, decryptBytes, decryptInit, decryptInit, encryptInit, encryptInit, fill, fixToLength, fixToLength, getCipherParams, getEncodingKey, getEncodingKey, getStreamCipher, getTempBuffer, hash, hash, hash, hash, isBlankKey, processBytesFully, readHeaderPage, streamDecrypt, streamEncrypt, toString, wrappublic BlockCipherProvider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey)
protected org.bouncycastle.crypto.BufferedBlockCipher getBlockCipher()
getBlockCipher in class BaseCryptCodecHandlerpublic final boolean canEncodePartialPage()
public final boolean canDecodeInline()
protected org.bouncycastle.crypto.BlockCipher initCipher()
protected org.bouncycastle.crypto.BlockCipher initPwdCipher()
protected org.bouncycastle.crypto.BlockCipher initCryptCipher()
protected void decodePageImpl(java.nio.ByteBuffer inPage,
java.nio.ByteBuffer outPage,
int pageNumber)
decodePageImpl in class OfficeCryptCodecHandlerpublic java.nio.ByteBuffer encodePageImpl(java.nio.ByteBuffer buffer,
int pageNumber,
int pageOffset)
throws java.io.IOException
encodePageImpl in class OfficeCryptCodecHandlerjava.io.IOExceptionprotected void reset()
reset in class OfficeCryptCodecHandler