# std.crypto: generate AES constants at compile time \(\#11612\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 941b6830b1831c4df5ba369088ff473a012a3b54

Requested commit: 941b6830b1831c4df5ba369088ff473a012a3b54

Commit: 941b6830b1831c4df5ba369088ff473a012a3b54

Tree: d24fc7ad87ef9b19b08176c83dd09d3018145519

Author: Helio Machado

Committer: GitHub

## Message

```
std.crypto: generate AES constants at compile time (#11612)

* std/crypto: generate AES constants at compile time

* Apply suggestions from code review

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>

* Update lib/std/crypto/aes/soft.zig

* Separate encryption and decryption tables

* Run `zig fmt`

* Increase branch quota and remove redundant align

* Update lib/std/crypto/aes/soft.zig

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>

* Rename identifiers and simplify dataflow

* Increase branch quota (again) and fix comment

Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
```

## Parents

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

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