com.healthmarketscience.jackcess.impl.office
Class ECMAStandardEncryptionProvider

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.ECMAStandardEncryptionProvider
All Implemented Interfaces:
com.healthmarketscience.jackcess.impl.CodecHandler
Direct Known Subclasses:
NonStandardEncryptionProvider

public class ECMAStandardEncryptionProvider
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
  ECMAStandardEncryptionProvider(com.healthmarketscience.jackcess.impl.PageChannel channel, byte[] encodingKey, ByteBuffer encProvBuf, byte[] pwdBytes)
           
protected ECMAStandardEncryptionProvider(com.healthmarketscience.jackcess.impl.PageChannel channel, byte[] encodingKey, ByteBuffer encProvBuf, byte[] pwdBytes, int hashIterations)
           
 
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.office.BlockCipherProvider
canDecodeInline, canEncodePartialPage, decodePageImpl, encodePageImpl, getBlockCipher, initCryptCipher, initPwdCipher, reset
 
Methods inherited from class com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
bits2bytes, create, decodePage, encodePage, getDigest, getPhase, initCryptDigest, initPwdDigest, 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

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
Method Detail

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.