com.healthmarketscience.jackcess.impl.office
Class StreamCipherProvider

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
      extended by com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
          extended by com.healthmarketscience.jackcess.impl.office.StreamCipherProvider
All Implemented Interfaces:
com.healthmarketscience.jackcess.impl.CodecHandler
Direct Known Subclasses:
OfficeBinaryDocRC4Provider, RC4CryptoAPIProvider

public abstract class StreamCipherProvider
extends OfficeCryptCodecHandler

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
protected StreamCipherProvider(com.healthmarketscience.jackcess.impl.PageChannel channel, byte[] encodingKey)
           
 
Method Summary
 boolean canDecodeInline()
           
protected  void decodePageImpl(ByteBuffer inPage, ByteBuffer outPage, int pageNumber)
           
 ByteBuffer encodePageImpl(ByteBuffer buffer, int pageNumber, int pageOffset)
           
protected  StreamCipherCompat getStreamCipher()
           
protected  StreamCipherCompat initCipher()
           
protected  void reset()
           
 
Methods inherited from class com.healthmarketscience.jackcess.impl.OfficeCryptCodecHandler
bits2bytes, create, decodePage, encodePage, getDigest, getPhase, initCryptDigest, initDigest, initPwdDigest, int2bytes, iterateHash, verifyPassword
 
Methods inherited from class com.healthmarketscience.jackcess.impl.BaseCryptCodecHandler
applyPageNumber, blockDecrypt, blockDecryptBytes, blockEncrypt, computeCipherParams, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.healthmarketscience.jackcess.impl.CodecHandler
canEncodePartialPage
 

Constructor Detail

StreamCipherProvider

protected StreamCipherProvider(com.healthmarketscience.jackcess.impl.PageChannel channel,
                               byte[] encodingKey)
Method Detail

canDecodeInline

public boolean canDecodeInline()

getStreamCipher

protected StreamCipherCompat getStreamCipher()
Overrides:
getStreamCipher in class BaseCryptCodecHandler

initCipher

protected StreamCipherCompat initCipher()

decodePageImpl

protected void decodePageImpl(ByteBuffer inPage,
                              ByteBuffer outPage,
                              int pageNumber)
Specified by:
decodePageImpl in class OfficeCryptCodecHandler

encodePageImpl

public ByteBuffer encodePageImpl(ByteBuffer buffer,
                                 int pageNumber,
                                 int pageOffset)
Specified by:
encodePageImpl in class OfficeCryptCodecHandler

reset

protected void reset()
Overrides:
reset in class OfficeCryptCodecHandler


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