zig/lib/std
Jacob Young 7afb277725 std.crypto.tls: fix x25519_ml_kem768 key share
This is mostly nfc cleanup as I was bisecting the client hello to find
the problematic part, and the only bug fix ended up being

    key_share.x25519_kp.public_key ++
    key_share.ml_kem768_kp.public_key.toBytes()

to

    key_share.ml_kem768_kp.public_key.toBytes() ++
    key_share.x25519_kp.public_key)

and the same swap in `KeyShare.exchange` as per some random blog that
says "a hybrid keyshare, constructed by concatenating the public KEM key
with the public X25519 key".  I also note that based on the same blog
post, there was a draft version of this method that indeed had these
values swapped, and that used to be supported by this code, but it was
not properly fixed up when this code was updated from the draft spec.

Closes #21747
2024-11-07 20:25:26 -05:00
..
Build std.Target: Add support for specifying Android API level. 2024-11-01 06:23:59 +01:00
c fix typo in segset_t 2024-10-03 09:37:57 -07:00
compress Rewrite bit_reader and bit_writer to take advantage of current zig semantics and enhance readability (#21689) 2024-10-13 18:44:42 -07:00
crypto std.crypto.tls: fix x25519_ml_kem768 key share 2024-11-07 20:25:26 -05:00
debug std.debug: Add handling for armeb, thumb, thumbeb, and aarch64_be. 2024-11-04 08:29:42 +01:00
dwarf Dwarf: fix and test allowzero pointers 2024-08-17 05:57:45 -04:00
fmt std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
fs std.fs.File: Fix metadata error check on Linux 2024-10-31 14:02:42 +01:00
hash Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
heap Fix index calculation in WasmPageAllocator 2024-10-12 22:53:02 +02:00
http std.crypto.tls: implement TLSv1.2 2024-11-07 20:25:26 -05:00
io Rewrite bit_reader and bit_writer to take advantage of current zig semantics and enhance readability (#21689) 2024-10-13 18:44:42 -07:00
json Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
math std.Target: Replace isARM() with isArmOrThumb() and rename it to isArm(). 2024-11-03 09:29:30 +01:00
mem std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
meta std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
net std.net, std.http: simplify 2024-02-23 02:37:11 -07:00
os zig.h: Improve portability of zig_*_windows_teb() helpers. 2024-11-04 11:59:38 +01:00
posix std.posix: Skip Stat struct comparison in fstatat test for s390x-linux. 2024-10-04 00:26:55 +02:00
process fix IB in fifoToOwnedArrayList 2024-09-24 13:19:06 -07:00
Random add std.testing.random_seed 2024-07-23 11:43:12 -07:00
sort compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
tar Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target Provide a detailed message for invalid arch in target triple (#21921) 2024-11-06 03:38:01 +00:00
testing std: enable FailingAllocator to fail on resize 2023-09-06 19:06:32 +03:00
Thread combine codegen work queue and linker task queue 2024-10-23 16:27:39 -07:00
time std.time.epoch: Fix comments referring to epoch as 1970-10-01 2024-08-15 17:54:27 -07:00
tz
unicode all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
valgrind std.valgrind: Fix some compile errors. 2024-11-04 10:56:32 +01:00
zig Merge pull request #21599 from alexrp/thumb-porting 2024-11-03 14:25:30 +01:00
zip std: Convert deprecated aliases to compile errors and fix usages 2024-06-13 10:18:59 -04:00
array_hash_map.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
array_list.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
ascii.zig std.ascii: make toLower toUpper branchless (#21369) 2024-09-13 17:22:19 -07:00
atomic.zig Merge pull request #21587 from alexrp/hexagon-porting 2024-10-06 13:35:56 +02:00
base64.zig stdlib : base64 encode to writer (#20961) 2024-09-04 08:10:12 +00:00
bit_set.zig std.DynamicBitSet: remove wrong and useless comments (#21418) 2024-09-19 17:06:23 -07:00
BitStack.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
bounded_array.zig Revert "Smaller memory footprint for BoundedArray (#16299)" 2024-08-23 22:30:10 -07:00
buf_map.zig lib: correct unnecessary uses of 'var' 2023-11-19 09:55:07 +00:00
buf_set.zig Change many test blocks to doctests/decltests 2024-02-26 15:18:31 -08:00
Build.zig introduce a CLI flag to enable .so scripts; default off 2024-10-23 16:27:38 -07:00
builtin.zig std.builtin: Some minor fixes to CallingConvention doc comments. 2024-11-02 10:30:48 +01:00
c.zig Add missing Darwin declarations (#21929) 2024-11-07 00:09:39 +00:00
coff.zig std.{coff,elf}: Remove the {MachineType,EM}.toTargetCpuArch() functions. 2024-08-23 19:56:24 +02:00
compress.zig improve documentation in std 2024-03-10 18:13:30 -07:00
crypto.zig Rename the namespace for ml_kem variants of Kyber to nist 2024-08-22 07:54:12 +02:00
debug.zig std.debug: Add handling for armeb, thumb, thumbeb, and aarch64_be. 2024-11-04 08:29:42 +01:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig std.dynamic_library: update to new elf API 2024-10-12 10:44:17 -07:00
elf.zig link.Elf: eliminate an O(N^2) algorithm in flush() 2024-10-12 10:44:17 -07:00
enums.zig std: avoid field/decl name conflicts 2024-08-29 20:39:11 +01:00
fifo.zig std: promote tests to doctests 2024-03-21 14:11:46 -07:00
fmt.zig std.fmt: Fix compile error in Parser.peek() (#20532) 2024-10-30 07:45:23 +00:00
fs.zig fix compilation errors for fs and fs.Dir (#21643) 2024-10-17 01:08:58 +02:00
gpu.zig std.gpu: add instanceIndex 2024-11-01 02:04:27 +03:30
hash_map.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
hash.zig XXH3 Implementation for Zig STD (#17530) 2023-10-17 13:55:01 -05:00
heap.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
http.zig add std.http.WebSocket 2024-08-07 00:48:32 -07:00
io.zig std: async read into small temporary buffer between poll calls on Windows 2024-10-06 07:01:12 +01:00
json.zig Delete compile errors for deprecated decls 2024-05-03 13:27:30 -07:00
leb128.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
linked_list.zig Revert "std.SinglyLinkedList: add sort function" 2023-11-24 22:33:50 -07:00
log.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
macho.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
math.zig std.math: rename make_f80 to F80.toFloat and break_f80 to F80.fromFloat 2024-09-02 00:10:22 +03:00
mem.zig std.mem.asBytes: fix footgun when passing non-single pointer 2024-10-31 20:42:53 +00:00
meta.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
multi_array_list.zig std.MultiArrayList: add clear methods 2024-10-14 03:33:23 -07:00
net.zig std.c reorganization 2024-07-19 00:30:32 -07:00
once.zig compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
os.zig std.c reorganization 2024-07-19 00:30:32 -07:00
pdb.zig std.pdb: obey naming conventions 2024-08-29 23:43:52 +01:00
posix.zig freebsd posix: add SystemOutdated to MemFdCreateError 2024-10-07 13:19:33 -04:00
priority_dequeue.zig add std.testing.random_seed 2024-07-23 11:43:12 -07:00
priority_queue.zig std: fix typos (#20560) 2024-07-09 14:25:42 -07:00
process.zig move std.zig.fatal to std.process.fatal 2024-07-20 01:06:28 -07:00
Progress.zig std.Progress: fix data race 2024-10-23 13:47:44 -07:00
Random.zig std: fix Random.enumValueWithIndex of single-variant enum 2024-11-06 09:15:56 +00:00
RingBuffer.zig std.RingBuffer: use sliceAt/sliceFirst in read*AssumeLength 2024-03-10 18:17:23 +11:00
segmented_list.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
SemanticVersion.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
simd.zig std.simd: Disable vector prefix scan test on aarch64_be. 2024-11-04 08:29:42 +01:00
sort.zig std.equalRange: Compute lower and upper bounds simultaneously 2024-09-23 13:03:06 -07:00
start.zig Merge pull request #21843 from alexrp/callconv-followup 2024-11-03 14:27:09 +01:00
static_string_map.zig std.static_string_map: Cast length of input for runtime initialization 2024-06-20 23:22:39 +00:00
std.zig Remove packed_int_array.zig from std 2024-10-12 12:00:09 +02:00
tar.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target.zig Merge pull request #21843 from alexrp/callconv-followup 2024-11-03 14:27:09 +01:00
testing.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
Thread.zig std.os.windows: Fix some incorrect callconv specifiers. 2024-11-02 10:44:18 +01:00
time.zig move std.time.sleep to std.Thread.sleep 2024-09-26 12:35:14 -07:00
treap.zig Condense and extend std.Treap's traversal functionalities. (#20002) 2024-07-28 19:47:55 -07:00
tz.zig std.builtin.Endian: make the tags lower case 2023-10-31 21:37:35 -04:00
unicode.zig std: update eval branch quotas after bdbc485 2024-08-21 01:30:46 +01:00
Uri.zig std.http.Client: always omit port when it matches default 2024-04-12 22:37:07 -07:00
valgrind.zig std.valgrind: Port doClientRequest() to all archs supported by Valgrind. 2024-11-04 12:39:48 +01:00
wasm.zig Remove redundant test name prefixes now that test names are fully qualified 2024-02-26 15:18:31 -08:00
zig.zig Provide a detailed message for invalid arch in target triple (#21921) 2024-11-06 03:38:01 +00:00
zip.zig std.zip: Fix typo in doc comments 2024-06-17 16:12:19 -04:00