mdFormatImport

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: 13 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 {
	// contains filtered or unexported fields
}

mdencode struct

func Init

func Init(encodingFormat int, fileName string, filePath string, fileSize uint64, blockSize uint64, modulusSize uint64, fileHashListString string, blockHashListString string, outputfileName string) (mdimport *FileData)

Init returns a new mdFormat loader object this sets the correct mdFormat object

func (*FileData) PrintType

func (md *FileData) PrintType()

display the object type

func (*FileData) SetAppendFile

func (md *FileData) SetAppendFile(appendfile bool)

SetAppendFile set the append file mode

func (*FileData) SetByteBlock

func (md *FileData) SetByteBlock(byteblock bool)

SetByteBlock set the byte block mode

func (*FileData) SetFileHashLine

func (md *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) SetKeyFile

func (md *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) SetLogFile

func (md *FileData) SetLogFile(logfile string)

SetLogFile set the optional logfile

func (*FileData) SetOutputFile

func (md *FileData) SetOutputFile(outputfile string)

SetOutputFile

func (*FileData) SetmdFormatNoSQL

func (md *FileData) SetmdFormatNoSQL(filehashline bool) (mdfmt mdformat)

setmdFormatNoSQL sets the correct md format object

func (*FileData) SetmdFormatText

func (md *FileData) SetmdFormatText(filehashline bool) (mdfmt mdformat)

setmdFormat sets the correct md format object

Jump to

Keyboard shortcuts

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