public class OfficeBinaryDocRC4Provider extends StreamCipherProvider
OfficeCryptCodecHandler.Phase| Modifier and Type | Field and Description |
|---|---|
private byte[] |
_baseHash |
private byte[] |
_encVerifier |
private byte[] |
_encVerifierHash |
CIPHER_DECRYPT_MODE, CIPHER_ENCRYPT_MODE| Constructor and Description |
|---|
OfficeBinaryDocRC4Provider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey,
java.nio.ByteBuffer encProvBuf,
byte[] pwdBytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncodePartialPage() |
protected org.bouncycastle.crypto.params.KeyParameter |
computeCipherParams(int pageNumber)
Generates the cipher parameters for the given page number.
|
private org.bouncycastle.crypto.params.KeyParameter |
computeEncryptionKey(byte[] blockBytes) |
protected StreamCipherCompat |
initCipher() |
protected org.bouncycastle.crypto.Digest |
initDigest() |
protected boolean |
verifyPassword(byte[] pwdBytes) |
canDecodeInline, decodePageImpl, encodePageImpl, getStreamCipher, resetbits2bytes, create, decodePage, encodePage, getDigest, getPhase, initCryptDigest, initPwdDigest, int2bytes, iterateHashapplyPageNumber, blockDecrypt, blockDecryptBytes, blockEncrypt, decryptBytes, decryptBytes, decryptInit, decryptInit, encryptInit, encryptInit, fill, fixToLength, fixToLength, getBlockCipher, getCipherParams, getEncodingKey, getEncodingKey, getTempBuffer, hash, hash, hash, hash, isBlankKey, processBytesFully, readHeaderPage, streamDecrypt, streamEncrypt, toString, wrapprivate final byte[] _encVerifier
private final byte[] _encVerifierHash
private final byte[] _baseHash
public OfficeBinaryDocRC4Provider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey,
java.nio.ByteBuffer encProvBuf,
byte[] pwdBytes)
public boolean canEncodePartialPage()
protected org.bouncycastle.crypto.Digest initDigest()
initDigest in class OfficeCryptCodecHandlerprotected StreamCipherCompat initCipher()
initCipher in class StreamCipherProviderprotected org.bouncycastle.crypto.params.KeyParameter computeCipherParams(int pageNumber)
BaseCryptCodecHandlercomputeCipherParams in class BaseCryptCodecHandlerprivate org.bouncycastle.crypto.params.KeyParameter computeEncryptionKey(byte[] blockBytes)
protected boolean verifyPassword(byte[] pwdBytes)
verifyPassword in class OfficeCryptCodecHandler