# std/crypto: add a vectorized ChaCha20 implementation · gitcafe/zig

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

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

Visibility: public

Requested revision: 9b386bda33e94c79d6b9a1db911d394c26592e71

Requested commit: 9b386bda33e94c79d6b9a1db911d394c26592e71

Commit: 9b386bda33e94c79d6b9a1db911d394c26592e71

Tree: f9d2a50e5664776a8c18dd71d6cd18bccd3cd135

Author: Frank Denis

Committer: Frank Denis

## Message

```
std/crypto: add a vectorized ChaCha20 implementation

Brings a 30% speed boost on x86_64 even though we still process only
one block at a time for now.

Only enabled on x86_64 since the non-vectorized implementation seems
to currently perform better on some architectures (at least on aarch64).

But the non-vectorized implementation still gets a little speed boost
as well (~17%) with these changes.

```

## Parents

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

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