# std.crypto: add AES-SIV and AES-GCM-SIV · gitcafe/zig

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

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

Visibility: public

Requested revision: dd46e07fb95c6c5952b3dc41307a5aa4e130ba6a

Requested commit: dd46e07fb95c6c5952b3dc41307a5aa4e130ba6a

Commit: dd46e07fb95c6c5952b3dc41307a5aa4e130ba6a

Tree: bb8665195bc830a2cfc870fe465e80cfdcdcc929

Author: Frank Denis

Committer: Frank Denis

## Message

```
std.crypto: add AES-SIV and AES-GCM-SIV

The Zig standard library lacked schemes that resist nonce reuse.

AES-SIV and AES-GCM-SIV are the standard options for this.

AES-GCM-SIV can be very useful when Zig is used to target embedded
systems, and AES-SIV is especially useful for key wrapping.

Also take it as an opportunity to add a bunch of test vectors to
modes.ctr and make sure it works with block ciphers whose size is
not 16.

```

## Parents

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

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