com.healthmarketscience.jackcess.impl.office
Class ECMAStandardEncryptionProvider
java.lang.Object
com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
com.healthmarketscience.jackcess.impl.office.BlockCipherProvider
com.healthmarketscience.jackcess.impl.office.ECMAStandardEncryptionProvider
- All Implemented Interfaces:
- com.healthmarketscience.jackcess.impl.CodecHandler
- Direct Known Subclasses:
- NonStandardEncryptionProvider
public class ECMAStandardEncryptionProvider
- extends BlockCipherProvider
- Author:
- James Ahlborn
|
Method Summary |
protected org.bouncycastle.crypto.params.KeyParameter |
computeCipherParams(int pageNumber)
Generates the cipher parameters for the given page number. |
protected org.bouncycastle.crypto.BlockCipher |
initCipher()
|
protected org.bouncycastle.crypto.Digest |
initDigest()
|
protected boolean |
verifyPassword(byte[] pwdBytes)
|
| Methods inherited from class com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler |
applyPageNumber, blockDecrypt, blockDecryptBytes, blockEncrypt, decryptBytes, decryptBytes, decryptInit, decryptInit, encryptInit, encryptInit, fill, fixToLength, fixToLength, getCipherParams, getEncodingKey, getEncodingKey, getStreamCipher, getTempBuffer, hash, hash, hash, hash, isBlankKey, processBytesFully, readHeaderPage, streamDecrypt, streamEncrypt, toString, wrap |
ECMAStandardEncryptionProvider
public ECMAStandardEncryptionProvider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey,
ByteBuffer encProvBuf,
byte[] pwdBytes)
throws IOException
- Throws:
IOException
ECMAStandardEncryptionProvider
protected ECMAStandardEncryptionProvider(com.healthmarketscience.jackcess.impl.PageChannel channel,
byte[] encodingKey,
ByteBuffer encProvBuf,
byte[] pwdBytes,
int hashIterations)
throws IOException
- Throws:
IOException
initDigest
protected org.bouncycastle.crypto.Digest initDigest()
- Overrides:
initDigest in class OfficeCryptCodecHandler
initCipher
protected org.bouncycastle.crypto.BlockCipher initCipher()
- Overrides:
initCipher in class BlockCipherProvider
computeCipherParams
protected org.bouncycastle.crypto.params.KeyParameter computeCipherParams(int pageNumber)
- Description copied from class:
BaseCryptCodecHandler
- Generates the cipher parameters for the given page number.
- Specified by:
computeCipherParams in class BaseCryptCodecHandler
verifyPassword
protected boolean verifyPassword(byte[] pwdBytes)
- Specified by:
verifyPassword in class OfficeCryptCodecHandler
Copyright © 2010-2017 Health Market Science. All Rights Reserved.