aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-29 20:49:56 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-01-02 16:57:16 -0700
commit79b41dbdbfd6c511b2e206397788b81bc720d266 (patch)
tree49269b80f9fa6eddd2bdadc0b00c892c00a8b816 /src
parent2d090f61be89d0738b9d2644236717e0fada7e4d (diff)
downloadzig-79b41dbdbfd6c511b2e206397788b81bc720d266.tar.gz
zig-79b41dbdbfd6c511b2e206397788b81bc720d266.zip
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. 🙏
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions