org.apache.poi.hssf.record.crypto
Class Biff8RC4Key

java.lang.Object
  extended by org.apache.poi.hssf.record.crypto.Biff8EncryptionKey
      extended by org.apache.poi.hssf.record.crypto.Biff8RC4Key

public class Biff8RC4Key
extends Biff8EncryptionKey


Field Summary
static int KEY_DIGEST_LENGTH
           
 
Fields inherited from class org.apache.poi.hssf.record.crypto.Biff8EncryptionKey
_secretKey
 
Method Summary
static Biff8RC4Key create(java.lang.String password, byte[] salt)
          Create using the default password and a specified docId
 boolean validate(byte[] verifier, byte[] verifierHash)
           
 
Methods inherited from class org.apache.poi.hssf.record.crypto.Biff8EncryptionKey
create, getCurrentUserPassword, setCurrentUserPassword
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_DIGEST_LENGTH

public static final int KEY_DIGEST_LENGTH
See Also:
Constant Field Values
Method Detail

create

public static Biff8RC4Key create(java.lang.String password,
                                 byte[] salt)
Create using the default password and a specified docId

Parameters:
salt - 16 bytes

validate

public boolean validate(byte[] verifier,
                        byte[] verifierHash)
Overrides:
validate in class Biff8EncryptionKey
Returns:
true if the keyDigest is compatible with the specified saltData and saltHash


Copyright 2016 The Apache Software Foundation or its licensors, as applicable.