diff options
| author | Marc Tiehuis <marctiehuis@gmail.com> | 2018-08-30 18:02:19 +1200 |
|---|---|---|
| committer | Marc Tiehuis <marctiehuis@gmail.com> | 2018-08-30 18:02:19 +1200 |
| commit | 65b89f598c63719ab80553163424feb2d8e6f9e4 (patch) | |
| tree | c502fdf979ecf04944887f3dc3c94ff369b1d86c /src/main.cpp | |
| parent | 9de0f900e1a80554ac72c8675fc2896977f4930b (diff) | |
| download | zig-65b89f598c63719ab80553163424feb2d8e6f9e4.tar.gz zig-65b89f598c63719ab80553163424feb2d8e6f9e4.zip | |
Add poly1305 and x25519 crypto primitives
These are translated from [monocypher](https://monocypher.org/) which
has fairly competitive performance while remaining quite simple.
Initial performance comparision:
Zig:
Poly1305: 1423 MiB/s
X25519: 8671 exchanges per second
Monocypher:
Poly1305: 1567 MiB/s
X25519: 10539 exchanges per second
There is room for improvement and no real effort has been made at all in
optimization beyond a direct translation.
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions
