MCPcopy
hub / github.com/dgraph-io/badger / decryptKV

Method decryptKV

value.go:174–176  ·  view source on GitHub ↗
(buf []byte, offset uint32)

Source from the content-addressed store, hash-verified

172}
173
174func (lf *logFile) decryptKV(buf []byte, offset uint32) ([]byte, error) {
175 return y.XORBlock(buf, lf.dataKey.Data, lf.generateIV(offset))
176}
177
178// KeyID returns datakey's ID.
179func (lf *logFile) keyID() uint64 {

Callers 3

decodeEntryMethod · 0.95
EntryMethod · 0.80
ReadMethod · 0.80

Calls 2

generateIVMethod · 0.95
XORBlockFunction · 0.92

Tested by

no test coverage detected