public class Biff8XOR extends java.lang.Object implements Biff8Cipher
Constructor and Description |
---|
Biff8XOR(int initialOffset,
Biff8XORKey key) |
Modifier and Type | Method and Description |
---|---|
void |
setNextRecordSize(int recordSize) |
void |
skipTwoBytes()
Used when BIFF header fields (sid, size) are being read.
|
void |
startRecord(int currentSid) |
void |
xor(byte[] buf,
int pOffset,
int pLen)
Decrypts a xor obfuscated byte array.
|
int |
xorByte(int rawVal) |
int |
xorInt(int rawVal) |
long |
xorLong(long rawVal) |
int |
xorShort(int rawVal) |
public Biff8XOR(int initialOffset, Biff8XORKey key)
public void startRecord(int currentSid)
startRecord
in interface Biff8Cipher
public void setNextRecordSize(int recordSize)
setNextRecordSize
in interface Biff8Cipher
public void skipTwoBytes()
Cipher
instance must step even when unencrypted bytes are readskipTwoBytes
in interface Biff8Cipher
public void xor(byte[] buf, int pOffset, int pLen)
xor
in interface Biff8Cipher
public int xorByte(int rawVal)
xorByte
in interface Biff8Cipher
public int xorShort(int rawVal)
xorShort
in interface Biff8Cipher
public int xorInt(int rawVal)
xorInt
in interface Biff8Cipher
public long xorLong(long rawVal)
xorLong
in interface Biff8Cipher
Copyright 2015 The Apache Software Foundation or its licensors, as applicable.