public class OfficeBinaryDocRC4Provider extends StreamCipherProvider
OfficeCryptCodecHandler.Phase
CIPHER_DECRYPT_MODE, CIPHER_ENCRYPT_MODE
Constructor and Description |
---|
OfficeBinaryDocRC4Provider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey,
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.
|
protected org.bouncycastle.crypto.StreamCipher |
initCipher() |
protected org.bouncycastle.crypto.Digest |
initDigest() |
protected boolean |
verifyPassword(byte[] pwdBytes) |
canDecodeInline, decodePageImpl, encodePageImpl, getStreamCipher, reset
bits2bytes, create, decodePage, encodePage, getDigest, getPhase, initCryptDigest, initPwdDigest, int2bytes, iterateHash
applyPageNumber, 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, wrap
public OfficeBinaryDocRC4Provider(com.healthmarketscience.jackcess.impl.PageChannel channel, byte[] encodingKey, ByteBuffer encProvBuf, byte[] pwdBytes)
public boolean canEncodePartialPage()
protected org.bouncycastle.crypto.Digest initDigest()
initDigest
in class OfficeCryptCodecHandler
protected org.bouncycastle.crypto.StreamCipher initCipher()
initCipher
in class StreamCipherProvider
protected org.bouncycastle.crypto.params.KeyParameter computeCipherParams(int pageNumber)
BaseCryptCodecHandler
computeCipherParams
in class BaseCryptCodecHandler
protected boolean verifyPassword(byte[] pwdBytes)
verifyPassword
in class OfficeCryptCodecHandler
Copyright © 2010–2015. All rights reserved.