diff options
| author | Frank Denis <github@pureftpd.org> | 2020-10-16 19:10:20 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-10-17 18:53:08 -0400 |
| commit | fa17447090500b67c515c023376ab66201f8f088 (patch) | |
| tree | 5521ad832ded1b9c38a24fec0cc02871739bd630 /test/compile_errors.zig | |
| parent | 0011def2b24f63233f2ee24909701f92264c2ef5 (diff) | |
| download | zig-fa17447090500b67c515c023376ab66201f8f088.tar.gz zig-fa17447090500b67c515c023376ab66201f8f088.zip | |
std/crypto: make the whole APIs more consistent
- use `PascalCase` for all types. So, AES256GCM is now Aes256Gcm.
- consistently use `_length` instead of mixing `_size` and `_length` for the
constants we expose
- Use `minimum_key_length` when it represents an actual minimum length.
Otherwise, use `key_length`.
- Require output buffers (for ciphertexts, macs, hashes) to be of the right
size, not at least of that size in some functions, and the exact size elsewhere.
- Use a `_bits` suffix instead of `_length` when a size is represented as a
number of bits to avoid confusion.
- Functions returning a constant-sized slice are now defined as a slice instead
of a pointer + a runtime assertion. This is the case for most hash functions.
- Use `camelCase` for all functions instead of `snake_case`.
No functional changes, but these are breaking API changes.
Diffstat (limited to 'test/compile_errors.zig')
0 files changed, 0 insertions, 0 deletions
