# std.crypto.tls: avoid heap allocation · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/79b41dbdbfd6c511b2e206397788b81bc720d266)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 79b41dbdbfd6c511b2e206397788b81bc720d266

Requested commit: 79b41dbdbfd6c511b2e206397788b81bc720d266

Commit: 79b41dbdbfd6c511b2e206397788b81bc720d266

Tree: 49269b80f9fa6eddd2bdadc0b00c892c00a8b816

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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. 🙏

```

## Parents

- [2d090f61be89d0738b9d2644236717e0fada7e4d](https://git.cafe/gitcafe/zig/commit/2d090f61be89d0738b9d2644236717e0fada7e4d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/79b41dbdbfd6c511b2e206397788b81bc720d266?format=markdown)
