# std/crypto: make gimli slightly faster · gitcafe/zig

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

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

Visibility: public

Requested revision: 868a46eb43e68971634c046c8317c1b83cae21ae

Requested commit: 868a46eb43e68971634c046c8317c1b83cae21ae

Commit: 868a46eb43e68971634c046c8317c1b83cae21ae

Tree: 26d2b972569d5ef088cc380f242d77b1c093c576

Author: Frank Denis

Committer: Frank Denis

## Message

```
std/crypto: make gimli slightly faster

Before:
       gimli-hash:        120 MiB/s
       gimli-aead:        130 MiB/s

After:
       gimli-hash:        195 MiB/s
       gimli-aead:        208 MiB/s

Also fixes in-place decryption by the way.

If the input & output buffers were the same, decryption used to fail.

Return on decryption error in the benchmark to detect similar issues
in future AEADs even in non release-fast mode.

```

## Parents

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

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