org.apache.poi.hssf.record.crypto
Class Biff8XOR
- java.lang.Object
-
- org.apache.poi.hssf.record.crypto.Biff8XOR
-
- All Implemented Interfaces:
- Biff8Cipher
public class Biff8XOR extends java.lang.Object implements Biff8Cipher
-
-
Constructor Summary
Constructors Constructor and Description Biff8XOR(int initialOffset, Biff8XORKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetNextRecordSize(int recordSize)voidskipTwoBytes()Used when BIFF header fields (sid, size) are being read.voidstartRecord(int currentSid)voidxor(byte[] buf, int pOffset, int pLen)Decrypts a xor obfuscated byte array.intxorByte(int rawVal)intxorInt(int rawVal)longxorLong(long rawVal)intxorShort(int rawVal)
-
-
-
Constructor Detail
-
Biff8XOR
public Biff8XOR(int initialOffset, Biff8XORKey key)
-
-
Method Detail
-
startRecord
public void startRecord(int currentSid)
- Specified by:
startRecordin interfaceBiff8Cipher
-
setNextRecordSize
public void setNextRecordSize(int recordSize)
- Specified by:
setNextRecordSizein interfaceBiff8Cipher
-
skipTwoBytes
public void skipTwoBytes()
Used when BIFF header fields (sid, size) are being read. The internalCipherinstance must step even when unencrypted bytes are read- Specified by:
skipTwoBytesin interfaceBiff8Cipher
-
xor
public void xor(byte[] buf, int pOffset, int pLen)Decrypts a xor obfuscated byte array. The data is decrypted in-place- Specified by:
xorin interfaceBiff8Cipher- See Also:
- 2.3.7.3 Binary Document XOR Data Transformation Method 1
-
xorByte
public int xorByte(int rawVal)
- Specified by:
xorBytein interfaceBiff8Cipher
-
xorShort
public int xorShort(int rawVal)
- Specified by:
xorShortin interfaceBiff8Cipher
-
xorInt
public int xorInt(int rawVal)
- Specified by:
xorIntin interfaceBiff8Cipher
-
xorLong
public long xorLong(long rawVal)
- Specified by:
xorLongin interfaceBiff8Cipher
-
-
DataMelt 3.0 © DataMelt by jWork.ORG