zig/lib/std/crypto
Frank Denis fa17447090 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.
2020-10-17 18:53:08 -04:00
..
25519 std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
aes std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
aegis.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
aes.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
aes_gcm.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
benchmark.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
blake2.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
blake3.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
chacha20.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
ghash.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
gimli.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
hkdf.zig Remove unused var, sort std.crypto.* 2020-09-30 01:39:55 +02:00
hmac.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
md5.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
modes.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
pbkdf2.zig Add an error set 2020-09-16 01:58:48 +03:00
poly1305.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
sha1.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
sha2.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
sha3.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
siphash.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00
test.zig std/crypto: make the whole APIs more consistent 2020-10-17 18:53:08 -04:00