0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Andrew Kelley 79b41dbdbf std.crypto.tls: avoid heap allocation
The code we are borrowing from https://github.com/shiguredo/tls13-zig
requires an Allocator for doing RSA certificate verification. As a
stopgap measure, this commit uses a FixedBufferAllocator to avoid heap
allocation for these functions.

Thank you to @naoki9911 for providing this great resource which has been
extremely helpful for me when working on this standard library TLS
implementation. Until Zig has std.crypto.rsa officially, we will borrow
this implementation of RSA. 🙏
History 2023-01-02 16:57:16 -07:00
..
atomic remove most conditional compilation based on stage1 2022-12-06 20:38:54 -07:00
build Merge pull request #14102 from Luukdegram/wasm-undefined-symbols 2022-12-29 17:59:44 -05:00
c remove the experimental std.x namespace 2023-01-02 16:57:15 -07:00
compress update uses of overflow arithmetic builtins 2022-12-27 15:13:14 +02:00
crypto std.crypto.tls: avoid heap allocation 2023-01-02 16:57:16 -07:00
dwarf wasm: Implement debug info for parameters 2022-05-09 18:51:46 +02:00
event remove most conditional compilation based on stage1 2022-12-06 20:38:54 -07:00
fmt Revert "aarch64: reenable tests that are no longer regressed" 2022-12-27 20:54:27 -07:00
fs std.fs.Dir.statFile rework 2022-12-14 14:26:02 -07:00
hash std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
heap std.ArrayList: fix shrinkAndFree 2022-11-30 15:42:59 -07:00
http add std.http.Headers 2023-01-02 16:57:16 -07:00
io add tests for fixed stage1 bugs 2022-12-31 20:49:02 -05:00
json std.json: Fix parsing of large numbers 2022-07-23 13:52:16 +03:00
math cbe: all behaviour tests now pass on msvc 2023-01-01 16:44:29 -05:00
mem Allocator.zig: minor fixes 2022-12-13 15:04:03 -05:00
meta std.builtin: remove layout field from Type.Enum 2022-12-18 13:31:38 +01:00
net AstGen: fix loop control flow applying to wrong loop 2022-07-13 16:10:41 -07:00
os remove the experimental std.x namespace 2023-01-02 16:57:15 -07:00
rand rand: add pub to next/jump 2022-12-18 01:46:09 -05:00
target arm: move cpu model table into system/arm.zig 2022-11-28 17:07:35 +01:00
testing std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
Thread std.Thread.Futex.PosixImpl.Address.from: fix alignment type 2022-11-28 18:49:33 +02:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode update usages of @call 2022-12-13 13:14:20 +02:00
valgrind std.valgrind.callgrind: fix string type 2022-08-22 13:55:00 +03:00
zig add some comments to explain workarounds 2023-01-02 14:08:50 -07:00
array_hash_map.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
array_list.zig add tests for fixed stage1 bugs 2022-12-29 12:42:44 +02:00
ascii.zig std.ascii: more tests 2022-12-09 21:57:17 +01:00
atomic.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
base64.zig remove most conditional compilation based on stage1 2022-12-06 20:38:54 -07:00
bit_set.zig std: implement subsetOf and supersetOf for DynamicBitSet 2022-12-12 06:23:56 +02:00
bounded_array.zig AstGen: detect declarations shadowing locals 2022-08-16 20:35:03 +03:00
buf_map.zig reverse some of the now unneeded changes from squeek 2022-05-11 18:41:23 -06:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
build.zig expose VcpkgRoot so that build script can call exe.addVcpkgPath 2022-12-13 19:19:27 -05:00
builtin.zig Merge pull request #13914 from Vexu/variadic 2022-12-18 16:24:13 -05:00
c.zig remove the experimental std.x namespace 2023-01-02 16:57:15 -07:00
child_process.zig ChildProcess: fix false positives in windowsCreateProcessSupportsExtension 2022-12-31 20:51:56 -05:00
coff.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
compress.zig stage2: small fixes + adjustments to std tests 2022-06-11 23:49:33 +03:00
comptime_string_map.zig Re-apply: "std.ComptimeStringMap: use tuple types" 2022-12-08 22:21:46 +02:00
crypto.zig remove std.crypto.der 2023-01-02 16:57:15 -07:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig Replace tabs with spaces when printing a line for trace output. 2022-12-29 12:50:31 +02:00
dwarf.zig remove most conditional compilation based on stage1 2022-12-06 20:38:54 -07:00
dynamic_library.zig update usages of @call 2022-12-13 13:14:20 +02:00
elf.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
enums.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
event.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig add tests for fixed stage1 bugs 2022-12-31 20:49:02 -05:00
fs.zig Dir.openDirAccessMaskW: Add ACCESS_DENIED as a possible error 2022-12-22 14:03:05 -05:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig std.builtin: rename Type.Fn's args to params 2022-12-17 14:11:33 +01:00
heap.zig std.heap.raw_c_allocator: fix illegal alignment cast 2022-12-29 20:25:40 -07:00
http.zig add std.http.Headers 2023-01-02 16:57:16 -07:00
io.zig coff: compile and link simple exit program on arm64 2022-11-05 10:15:01 +01:00
json.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
leb128.zig update uses of overflow arithmetic builtins 2022-12-27 15:13:14 +02:00
linked_list.zig chore: Remove unused constants 2022-09-11 23:18:43 -04:00
log.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
macho.zig macho: add Zig wrapper for compact unwind encoding on arm64 2022-12-27 15:36:28 +01:00
math.zig Revert "aarch64: reenable tests that are no longer regressed" 2022-12-27 20:54:27 -07:00
mem.zig cbe: add doNotOptimizeAwayC to handle not having __asm support in msvc 2023-01-01 16:44:28 -05:00
meta.zig std.crypto.tls: implement the rest of the cipher suites 2023-01-02 16:57:15 -07:00
multi_array_list.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
net.zig std.crypto.tls.Client: rework the read function 2023-01-02 16:57:16 -07:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig remove the experimental std.x namespace 2023-01-02 16:57:15 -07:00
packed_int_array.zig std: Expose Int parameter in std.PackedInt[Array,Slice] 2022-12-29 19:11:05 +02:00
pdb.zig std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
priority_dequeue.zig std: Fix update() method in PriorityQueue and PriorityDequeue (#13908) 2022-12-13 14:55:41 -05:00
priority_queue.zig std: Fix update() method in PriorityQueue and PriorityDequeue (#13908) 2022-12-13 14:55:41 -05:00
process.zig Fix bug in WASI envmap handling. 2022-12-30 17:23:31 +02:00
Progress.zig fix(terminal): handle some possible errors and resolve TODOs 2022-12-13 09:11:30 +01:00
rand.zig remove most conditional compilation based on stage1 2022-12-06 20:38:54 -07:00
segmented_list.zig behavior: add test coverage for slicing zero length array field of struct 2022-12-10 12:33:17 +01:00
SemanticVersion.zig api(std.ascii): remove deprecated decls 2022-12-09 21:57:17 +01:00
simd.zig Revert "aarch64: reenable tests that are no longer regressed" 2022-12-27 20:54:27 -07:00
sort.zig std: add sort method to ArrayHashMap and MultiArrayList 2022-03-10 13:13:17 -05:00
start.zig std.builtin: rename Type.Fn's args to params 2022-12-17 14:11:33 +01:00
start_windows_tls.zig Merge pull request #13101 from alichraghi/o4 2022-11-05 02:34:24 -04:00
std.zig add url parsing to the std lib 2023-01-02 16:57:15 -07:00
target.zig std.Target.ObjectFormat: specify dxcontainer file ext 2022-12-26 18:03:27 -05:00
testing.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
Thread.zig update usages of @call 2022-12-13 13:14:20 +02:00
time.zig std.time: add microTimestamp() (#13327) 2022-11-02 23:20:19 +01:00
treap.zig treap: zig fmt 2022-04-15 17:01:01 -05:00
tz.zig std.tz: fix function returning pointer to local variable 2022-06-17 21:04:21 +03:00
unicode.zig remove most conditional compilation based on stage1 2022-12-06 20:38:54 -07:00
Url.zig add url parsing to the std lib 2023-01-02 16:57:15 -07:00
valgrind.zig LLVM: add valgrind integration for x86 and aarch64 2022-11-19 19:32:45 -07:00
wasm.zig wasm: refactor extended instructions 2022-12-21 17:02:53 +01:00
zig.zig std: add object format extension for dxcontainer 2022-12-13 15:06:55 -05:00