Skip to content

Commit

Permalink
interp: Fix broken aes_ctr, should return buffer instead of []byte
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Nov 30, 2021
1 parent f801cc0 commit 4eccb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/interp/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (i *Interp) aesCtr(c interface{}, a []interface{}) interface{} {
return err
}

return buf.Bytes()
return newBufferRangeFromBuffer(bitio.NewBufferFromBytes(buf.Bytes(), -1), 8)
}

func (i *Interp) _hexdump(c interface{}, a []interface{}) gojq.Iter {
Expand Down

0 comments on commit 4eccb1e

Please sign in to comment.