mdEncodeALL

package
v0.0.0-...-6c90f4e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2023 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

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 Init

func Init() (md *FileData)

Init returns a new mdEncode object

func (*FileData) InitDB

func (l *FileData) InitDB(fileName string)

create an empty sqlite3 signature db

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) PrintType

func (l *FileData) PrintType()

display the object type

func (*FileData) Printlog

func (l *FileData) Printlog(v ...interface{})

write to the log

func (*FileData) SetAppendFile

func (l *FileData) SetAppendFile(appendfile bool)

SetAppendFile set the append file mode

func (*FileData) SetByteBlock

func (l *FileData) SetByteBlock(byteblock bool)

SetByteBlock set the byte block mode

func (*FileData) SetByteBlockBigInt

func (l *FileData) SetByteBlockBigInt(byteblockint bool)

SetByteBlockBigInt set the byte block mode

func (*FileData) SetFileHashLine

func (l *FileData) SetFileHashLine(filehashline bool)

SetFileHashLine set the file hash format if true it will write or display the file hash list as one line

func (*FileData) SetHashLists

func (l *FileData) SetHashLists(fileHashList string, blockHashList string)

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

func (l *FileData) SetKeyFile(key string)

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

func (l *FileData) SetKeyList(keylist string) bool

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

func (l *FileData) SetLogFile(logfile string)

SetLogFile set the optional logfile

func (*FileData) SetMdFormat

func (l *FileData) SetMdFormat(format int)

SetMdFormat set the md output format

func (*FileData) SetOutputFile

func (l *FileData) SetOutputFile(outputfile string)

SetOutputFile

func (*FileData) SetProcessDir

func (l *FileData) SetProcessDir(dir bool)

SetProcessDirectory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL