zig/lib/std/crypto
Andrew Kelley 7cf2cbb33e std.crypto.tls.Client.readvAdvanced: fix bugs
* When there is buffered cleartext, return it without calling the
   underlying read function. This prevents buffer overflow due to space
   used up by cleartext.
 * Avoid clearing the buffer when the buffered cleartext could not be
   completely given to the result read buffer, and there is some
   buffered ciphertext left.
 * Instead of rounding up the amount of bytes to ask for to the nearest
   TLS record size, round down, with a minimum of 1. This prevents the
   code path from being taken which requires extra memory copies.
 * Avoid calling `@memcpy` with overlapping arguments.

closes #15590
2023-05-18 03:26:16 -07:00
..
25519 std: fix a bunch of typos 2023-04-30 18:16:04 -07:00
aes Move std.crypto.config options to std.options (#14906) 2023-03-14 06:40:23 +00:00
Certificate add explicit error union for Bundle.rescan and associated functions 2023-04-17 19:14:48 -05:00
pcurves update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
tls std.crypto.tls.Client.readvAdvanced: fix bugs 2023-05-18 03:26:16 -07:00
aegis.zig crypto.AegisMac: fix a regression from s/mem.copy/@memcpy/ (#15733) 2023-05-16 23:51:47 +00:00
aes.zig cbe: fix remaining aarch64 issues 2023-04-21 16:36:31 -04:00
aes_gcm.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
aes_ocb.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
argon2.zig std: update to use @memcpy directly 2023-04-28 13:24:43 -07:00
ascon.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
bcrypt.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
benchmark.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
blake2.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
blake3.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
Certificate.zig std: fix a bunch of typos 2023-04-30 18:16:04 -07:00
chacha20.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
cmac.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
ecdsa.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
errors.zig std: fix a bunch of typos 2023-04-30 18:16:04 -07:00
ghash_polyval.zig cbe: fix remaining aarch64 issues 2023-04-21 16:36:31 -04:00
hash_composition.zig std.crypto.hash: allow creating hash functions from compositions (#11965) 2022-07-01 11:37:41 +02:00
hkdf.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
hmac.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
isap.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
keccak_p.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
kyber_d00.zig std: fix a bunch of typos 2023-04-30 18:16:04 -07:00
md5.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
modes.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
pbkdf2.zig Fix PBKDF2 docstring comment 2023-05-01 22:14:51 +03:00
phc_encoding.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
poly1305.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
salsa20.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
scrypt.zig std: update to use @memcpy directly 2023-04-28 13:24:43 -07:00
sha1.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
sha2.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
sha3.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
siphash.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00
test.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
tlcsprng.zig Remove Gimli and Xoodoo from the standard library (#14928) 2023-03-21 04:54:10 +00:00
tls.zig std: update to use @memcpy directly 2023-04-28 13:24:43 -07:00
utils.zig update codebase to use @memset and @memcpy 2023-04-28 13:24:43 -07:00