1
1
mirror of https://github.com/wader/fq.git synced 2024-09-20 08:18:51 +03:00

interp: Fix broken aes_ctr, should return buffer instead of []byte

This commit is contained in:
Mattias Wadman 2021-11-30 15:30:34 +01:00
parent f801cc0af7
commit 4eccb1ee71

View File

@ -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 {