# crypto.AegisMac: fix a regression from s/mem.copy/@memcpy/ \(\#15733\) · gitcafe/zig

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

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

Visibility: public

Requested revision: c6966486e3d33054f1dfc822704dc48c62466d54

Requested commit: c6966486e3d33054f1dfc822704dc48c62466d54

Commit: c6966486e3d33054f1dfc822704dc48c62466d54

Tree: 98561fabc4bbd1451e6baade34ee81f570055bb4

Author: Frank Denis

Committer: GitHub

## Message

```
crypto.AegisMac: fix a regression from s/mem.copy/@memcpy/ (#15733)

In an update whose size is not a multiple of the block size,
we would end up calling @memcpy() with arguments of different sizes.
```

## Parents

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

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