vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
17.41k stars 1.51k forks source link

Endianness for AES-CTR encryption/decryption #17863

Closed alisa101rs closed 1 year ago

alisa101rs commented 1 year ago

A note for the community

Problem

By default (and without having a choice) vector using AES-CTR encryption/decryption with Little Endian counter. However there is no clearly defined standard for BE vs LE, 99% implementations are using BE.

See

I think Vector should have an option between AES-128-CTR-BE and AES-128-CTR-LE, or it should use BE by default.

At least, the fact that it's using LE should be mentioned in the documentation.

Configuration

No response

Version

vector 0.30.0 (x86_64-apple-darwin 38c3f0b 2023-05-22 17:38:48.655488673)

Debug Output

No response

Example Data

No response

Additional Context

No response

References

Originally added in https://github.com/vectordotdev/vector/pull/12090 without any consideration for endianness

alisa101rs commented 1 year ago

https://github.com/vectordotdev/vrl/pull/299 adds a choice between LE and BE, but vector still needs to fix documentation

jszwedko commented 1 year ago

vectordotdev/vrl#299 adds a choice between LE and BE, but vector still needs to fix documentation

👍 the docs will be updated when the next release of Vector occurs (0.32.0). I'll mark this as resolved by the linked PR.