Versions in this module Expand all Collapse all v0 v0.0.0 Jul 26, 2020 Changes in this version + func AddFile(sample mdbcommon.NewSample) error + func Entropy(p []byte) float64 + func FileTypeIDFromBytes(fileContents []byte, config *utils.ServerConfigFile) (int, error) + func HandleExecutable(fileContents []byte, fileID int64, fileTypeID int) + func HandleFileSubmission(fileName string, fileContents []byte, fileType int, userID int, sourceID int64) + func HashToBytes(sha256Hash string) ([]byte, error) + func HashToPath(sha256Hash string) string + func RunSDHashBuffer(fileName string, fileContents []byte) string + func RunSDHashPath(fPath string) string