-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Auditbeat] Add XXH64 File Integrity Checks (#6626) #7311
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,8 +281,25 @@ func (rcv *Hash) Blake2b512Length() int { | |
return 0 | ||
} | ||
|
||
func (rcv *Hash) Xx64(j int) int8 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exported method Hash.Xx64 should have comment or be unexported |
||
o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) | ||
if o != 0 { | ||
a := rcv._tab.Vector(o) | ||
return rcv._tab.GetInt8(a + flatbuffers.UOffsetT(j*1)) | ||
} | ||
return 0 | ||
} | ||
|
||
func (rcv *Hash) Xx64Length() int { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exported method Hash.Xx64Length should have comment or be unexported |
||
o := flatbuffers.UOffsetT(rcv._tab.Offset(34)) | ||
if o != 0 { | ||
return rcv._tab.VectorLen(o) | ||
} | ||
return 0 | ||
} | ||
|
||
func HashStart(builder *flatbuffers.Builder) { | ||
builder.StartObject(15) | ||
builder.StartObject(16) | ||
} | ||
func HashAddMd5(builder *flatbuffers.Builder, md5 flatbuffers.UOffsetT) { | ||
builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(md5), 0) | ||
|
@@ -374,6 +391,12 @@ func HashAddBlake2b512(builder *flatbuffers.Builder, blake2b512 flatbuffers.UOff | |
func HashStartBlake2b512Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { | ||
return builder.StartVector(1, numElems, 1) | ||
} | ||
func HashAddXx64(builder *flatbuffers.Builder, xx64 flatbuffers.UOffsetT) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exported function HashAddXx64 should have comment or be unexported |
||
builder.PrependUOffsetTSlot(15, flatbuffers.UOffsetT(xx64), 0) | ||
} | ||
func HashStartXx64Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. exported function HashStartXx64Vector should have comment or be unexported |
||
return builder.StartVector(1, numElems, 1) | ||
} | ||
func HashEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { | ||
return builder.EndObject() | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Checks out for me.