# Add poly1305 and x25519 crypto primitives · gitcafe/zig

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

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

Visibility: public

Requested revision: 65b89f598c63719ab80553163424feb2d8e6f9e4

Requested commit: 65b89f598c63719ab80553163424feb2d8e6f9e4

Commit: 65b89f598c63719ab80553163424feb2d8e6f9e4

Tree: c502fdf979ecf04944887f3dc3c94ff369b1d86c

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

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

```

## Parents

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

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