Package com.mku.salmon
Class SalmonDriveKey
java.lang.Object
com.mku.salmon.SalmonDriveKey
Encryption keys and properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the properties from memory.protected voidfinalize()Finalize.byte[]Function returns the encryption key that will be used to encrypt/decrypt the filesbyte[]Function returns the hash key that will be used to sign the file chunksintGet the number of iterations for the master key derivation.byte[]Get the master key.voidsetDriveKey(byte[] driveKey) Set the drive key.voidsetHashKey(byte[] hashKey) Set the hash key.voidsetIterations(int iterations) Set the number of iterations for the master key derivation.voidsetMasterKey(byte[] masterKey) Set the master key.
-
Constructor Details
-
SalmonDriveKey
public SalmonDriveKey()
-
-
Method Details
-
clear
public void clear()Clear the properties from memory. -
finalize
Finalize. -
getDriveKey
public byte[] getDriveKey()Function returns the encryption key that will be used to encrypt/decrypt the files- Returns:
- The encryption key
-
getHashKey
public byte[] getHashKey()Function returns the hash key that will be used to sign the file chunks- Returns:
- The hash key
-
setDriveKey
public void setDriveKey(byte[] driveKey) Set the drive key.- Parameters:
driveKey- The drive key
-
setHashKey
public void setHashKey(byte[] hashKey) Set the hash key.- Parameters:
hashKey- The hash key
-
getMasterKey
public byte[] getMasterKey()Get the master key.- Returns:
- The master key
-
setMasterKey
public void setMasterKey(byte[] masterKey) Set the master key.- Parameters:
masterKey- The master key
-
getIterations
public int getIterations()Get the number of iterations for the master key derivation.- Returns:
- The iterations
-
setIterations
public void setIterations(int iterations) Set the number of iterations for the master key derivation.- Parameters:
iterations- The iterations
-