com.healthmarketscience.jackcess.impl.office
Class AgileEncryptionProvider

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
      extended by com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
          extended by com.healthmarketscience.jackcess.impl.office.BlockCipherProvider
              extended by com.healthmarketscience.jackcess.impl.office.AgileEncryptionProvider
All Implemented Interfaces:
com.healthmarketscience.jackcess.impl.CodecHandler

public class AgileEncryptionProvider
extends BlockCipherProvider

Author:
James Ahlborn

Nested Class Summary
 
Nested classes/interfaces inherited from class com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
OfficeCryptCodecHandler.Phase
 
Field Summary
 
Fields inherited from class com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
CIPHER_DECRYPT_MODE, CIPHER_ENCRYPT_MODE
 
Constructor Summary
AgileEncryptionProvider(com.healthmarketscience.jackcess.impl.PageChannel channel, byte[] encodingKey, ByteBuffer encProvBuf, byte[] pwdBytes)
           
 
Method Summary
protected  org.bouncycastle.crypto.params.ParametersWithIV computeCipherParams(int pageNumber)
          Generates the cipher parameters for the given page number.
protected  org.bouncycastle.crypto.BlockCipher initCryptCipher()
           
protected  org.bouncycastle.crypto.Digest initCryptDigest()
           
protected  org.bouncycastle.crypto.BlockCipher initPwdCipher()
           
protected  org.bouncycastle.crypto.Digest initPwdDigest()
           
protected  boolean verifyPassword(byte[] pwdBytes)
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.office.BlockCipherProvider
canDecodeInline, canEncodePartialPage, decodePageImpl, encodePageImpl, getBlockCipher, initCipher, reset
 
Methods inherited from class com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
bits2bytes, create, decodePage, encodePage, getDigest, getPhase, initDigest, int2bytes, iterateHash
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgileEncryptionProvider

public AgileEncryptionProvider(com.healthmarketscience.jackcess.impl.PageChannel channel,
                               byte[] encodingKey,
                               ByteBuffer encProvBuf,
                               byte[] pwdBytes)
                        throws IOException
Throws:
IOException
Method Detail

initPwdDigest

protected org.bouncycastle.crypto.Digest initPwdDigest()
Overrides:
initPwdDigest in class OfficeCryptCodecHandler

initCryptDigest

protected org.bouncycastle.crypto.Digest initCryptDigest()
Overrides:
initCryptDigest in class OfficeCryptCodecHandler

initPwdCipher

protected org.bouncycastle.crypto.BlockCipher initPwdCipher()
Overrides:
initPwdCipher in class BlockCipherProvider

initCryptCipher

protected org.bouncycastle.crypto.BlockCipher initCryptCipher()
Overrides:
initCryptCipher in class BlockCipherProvider

verifyPassword

protected boolean verifyPassword(byte[] pwdBytes)
Specified by:
verifyPassword in class OfficeCryptCodecHandler

computeCipherParams

protected org.bouncycastle.crypto.params.ParametersWithIV computeCipherParams(int pageNumber)
Description copied from class: BaseCryptCodecHandler
Generates the cipher parameters for the given page number.

Specified by:
computeCipherParams in class BaseCryptCodecHandler


Copyright © 2010-2017 Health Market Science. All Rights Reserved.