Documentation
¶
Index ¶
- type FileData
- func (l *FileData) InitDB(fileName string)
- func (fdata *FileData) MdencodeDirectory(blockSize string, modSize string, format int, fileHashList string, ...) int
- func (fdata *FileData) MdencodeFile(blockSize string, modSize string, format int, fileHashList string, ...) int
- func (l *FileData) PrintType()
- func (l *FileData) Printlog(v ...interface{})
- func (l *FileData) SetAppendFile(appendfile bool)
- func (l *FileData) SetByteBlock(byteblock bool)
- func (l *FileData) SetByteBlockBigInt(byteblockint bool)
- func (l *FileData) SetFileHashLine(filehashline bool)
- func (l *FileData) SetHashLists(fileHashList string, blockHashList string)
- func (l *FileData) SetKeyFile(key string)
- func (l *FileData) SetKeyList(keylist string) bool
- func (l *FileData) SetLogFile(logfile string)
- func (l *FileData) SetMdFormat(format int)
- func (l *FileData) SetOutputFile(outputfile string)
- func (l *FileData) SetProcessDir(dir bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileData ¶
type FileData struct {
HclistSizeInt int
// contains filtered or unexported fields
}
mdencode struct
func (*FileData) MdencodeDirectory ¶
func (fdata *FileData) MdencodeDirectory(blockSize string, modSize string, format int, fileHashList string, blockHashList string, directoryName string, outputfileName string) int
MdencodeDirectory mdencode the directory non recursivelly with a array list
func (*FileData) MdencodeFile ¶
func (fdata *FileData) MdencodeFile(blockSize string, modSize string, format int, fileHashList string, blockHashList string, fileName string, outputfileName string) int
Mdencode mdencode the file
mdencode creates an optional top file level signature list mdencode creates an optional file block signature with a group of file blocks with a modular floor
in one alternative format it can have a single signature with a x-bit collision number to differentiate between collisions ie sha-256 and a 128-bit collision number to differentiate the correct collision or block with an equal signature and a modular floor in another case there could be a signature pair md5 or sha1 and a modular floor and a 1 to 4 byte collision integer to differentiate the correct collision the correct collision is just the nth block with the same signature
func (*FileData) SetAppendFile ¶
SetAppendFile set the append file mode
func (*FileData) SetByteBlock ¶
SetByteBlock set the byte block mode
func (*FileData) SetByteBlockBigInt ¶
SetByteBlockBigInt set the byte block mode
func (*FileData) SetFileHashLine ¶
SetFileHashLine set the file hash format if true it will write or display the file hash list as one line
func (*FileData) SetHashLists ¶
setHashLists this sets the block hash list and file hash list maps it also set the block hash list contexts and file hash list context maps
func (*FileData) SetKeyFile ¶
SetKeyFile set the md key this defaults to a default key if the key is less than 16 bytes one of the hash libs faults if the key is to small some of the signatures use a key
func (*FileData) SetKeyList ¶
SetKeyList Set the Signature List keylist=aeshash:083948304830948302332,ax1:0284923402934,ax2:03809903 ax:blake2s_128-aes8:ax ax:blake2s_128-aes8:ax-key ax:blake2s_128-aes8:ax-key-bg
func (*FileData) SetLogFile ¶
SetLogFile set the optional logfile
func (*FileData) SetMdFormat ¶
SetMdFormat set the md output format