zig/lib/std/crypto
Andrew Kelley e8c4e79499 std.c reorganization
It is now composed of these main sections:
* Declarations that are shared among all operating systems.
* Declarations that have the same name, but different type signatures
  depending on the operating system. Often multiple operating systems
  share the same type signatures however.
* Declarations that are specific to a single operating system.
  - These are imported one per line so you can see where they come from,
    protected by a comptime block to prevent accessing the wrong one.

Closes #19352 by changing the convention to making types `void` and
functions `{}`, so that it becomes possible to update `@hasDecl` sites
to use `@TypeOf(f) != void` or `T != void`. Happily, this ended up
removing some duplicate logic and update some bitrotted feature
detection checks.

A handful of types have been modified to gain namespacing and type
safety. This is a breaking change.

Oh, and the last usage of `usingnamespace` site is eliminated.
2024-07-19 00:30:32 -07:00
..
25519 crypto.edwards25519: add the ability to check for group membership (#20175) 2024-06-04 10:11:05 +02:00
aes std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
Certificate std.c reorganization 2024-07-19 00:30:32 -07:00
pcurves std.crypto.pcurves.*: simpler, smaller, faster u64 addition with carry (#19644) 2024-04-14 01:13:22 +02:00
tls tls.Client: fix out of bounds panic 2024-07-12 03:07:15 -04:00
aegis.zig {aegis,aes_gcm}: fix overflow with large inputs on 32-bit systems (#19270) 2024-03-12 22:56:28 +00:00
aes.zig x86_64: fix incorrect mnemonic selection 2024-02-25 11:22:10 +01:00
aes_gcm.zig {aegis,aes_gcm}: fix overflow with large inputs on 32-bit systems (#19270) 2024-03-12 22:56:28 +00:00
aes_ocb.zig x86_64: implement shifts of big integers 2024-02-12 05:25:07 +01:00
argon2.zig std.crypto.pwhash: Add recommended parameters (#20527) 2024-07-07 20:18:33 +00:00
ascon.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
bcrypt.zig std.crypto.pwhash: Add recommended parameters (#20527) 2024-07-07 20:18:33 +00:00
benchmark.zig std.crypto.pcurves.*: simpler, smaller, faster u64 addition with carry (#19644) 2024-04-14 01:13:22 +02:00
blake2.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
blake3.zig x86_64: implement more shuffles 2024-02-25 11:22:10 +01:00
Certificate.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
chacha20.zig std.crypto.chacha: fix typo in XChaChaIETF.stream() (#20399) 2024-06-23 13:20:18 +00:00
cmac.zig x86_64: fix std test failures 2023-11-03 23:18:21 -04:00
ecdsa.zig Rename der_encoded_max_length to der_encoded_length_max 2024-04-20 16:27:56 -07:00
errors.zig crypto.edwards25519: add the ability to check for group membership (#20175) 2024-06-04 10:11:05 +02:00
ff.zig std.crypto.ff: fix typo in montgomery boolean documentation (#20624) 2024-07-14 15:34:02 +02:00
ghash_polyval.zig Deprecate suggestVectorSize in favor of suggestVectorLength 2024-01-01 16:18:57 +01:00
hash_composition.zig x86_64: implement enough to pass unicode tests 2023-10-23 22:42:18 -04:00
hkdf.zig x86_64: implement enough to pass unicode tests 2023-10-23 22:42:18 -04:00
hmac.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
isap.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
keccak_p.zig sha3.keccak: allow Keccak[f=200] (#20181) 2024-06-04 10:10:46 +02:00
md5.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
ml_kem.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
modes.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
pbkdf2.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
phc_encoding.zig x86_64: fix std test failures 2023-11-03 23:18:21 -04:00
poly1305.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
salsa20.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
scrypt.zig std.crypto.pwhash: Add recommended parameters (#20527) 2024-07-07 20:18:33 +00:00
sha1.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
sha2.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
sha3.zig Delete compile errors for deprecated decls 2024-05-03 13:27:30 -07:00
siphash.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
test.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
tlcsprng.zig std.c reorganization 2024-07-19 00:30:32 -07:00
tls.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
utils.zig std: promote tests to doctests 2024-03-21 14:11:46 -07:00