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 Biff8Cipherpublic void setNextRecordSize(int recordSize)
setNextRecordSize in interface Biff8Cipherpublic void skipTwoBytes()
Cipher instance must step even when unencrypted bytes are readskipTwoBytes in interface Biff8Cipherpublic void xor(byte[] buf,
int pOffset,
int pLen)
xor in interface Biff8Cipherpublic int xorByte(int rawVal)
xorByte in interface Biff8Cipherpublic int xorShort(int rawVal)
xorShort in interface Biff8Cipherpublic int xorInt(int rawVal)
xorInt in interface Biff8Cipherpublic long xorLong(long rawVal)
xorLong in interface Biff8CipherCopyright 2017 The Apache Software Foundation or its licensors, as applicable.