Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileIVs ¶
FileIVs contains both IVs that are needed to create a file.
func DeriveFile ¶
DeriveFile derives both IVs that are needed to create a file and returns them in a container struct.
type Purpose ¶
type Purpose string
Purpose identifies for which purpose the IV will be used. This is mixed into the derivation.
const ( // PurposeDirIV means the value will be used as a directory IV PurposeDirIV Purpose = "DIRIV" // PurposeFileID means the value will be used as the file ID in the file header PurposeFileID Purpose = "FILEID" // PurposeSymlinkIV means the value will be used as the IV for symlink encryption PurposeSymlinkIV Purpose = "SYMLINKIV" // PurposeBlock0IV means the value will be used as the IV of ciphertext block #0. PurposeBlock0IV Purpose = "BLOCK0IV" )
Click to show internal directories.
Click to hide internal directories.