# Add Sha3 hashing functions · gitcafe/zig

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

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

Visibility: public

Requested revision: 7a3fd89d253993cbb73c6890974aa6d3f1f01f22

Requested commit: 7a3fd89d253993cbb73c6890974aa6d3f1f01f22

Commit: 7a3fd89d253993cbb73c6890974aa6d3f1f01f22

Tree: b2db42c5be0eab3ea43b4d503b10900ddc214ade

Author: Marc Tiehuis

Committer: Marc Tiehuis

## Message

````
Add Sha3 hashing functions

These are on the slower side and could be improved. No performance optimizations
yet have been done.

```
Cpu: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
```

-- Sha3-256

```
Zig --release-fast
    93 Mb/s
Zig --release-safe
    99 Mb/s
Zig
    4 Mb/s
```

-- Sha3-512

```
Zig --release-fast
    49 Mb/s
Zig --release-safe
    54 Mb/s
Zig
    2 Mb/s
```

Interestingly, release-safe is producing slightly better code than
release-fast.

````

## Parents

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

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