# Another big-endian fix for Gimli · gitcafe/zig

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

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

Visibility: public

Requested revision: d764636d21f9aafa1e9a33f625156a829cc5d747

Requested commit: d764636d21f9aafa1e9a33f625156a829cc5d747

Commit: d764636d21f9aafa1e9a33f625156a829cc5d747

Tree: eb3957e35a041dcd5f299a1d4df703fa318612d2

Author: Frank Denis

Committer: Frank Denis

## Message

```
Another big-endian fix for Gimli

We read and write bytes directly from the state, but in the init
function, we potentially endian-swap them.

Initialize bytes in native format since we will be reading them
in native format as well later.

Also use the public interface in the "permute" test rather than an
internal interface. The state itself is not meant to be accessed directly,
even in tests.

```

## Parents

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

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