# crypto.ghash: define aggregate tresholds as blocks, not bytes \(\#13507\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 59af6417bbb93a2cca453d930320217a970040bd

Requested commit: 59af6417bbb93a2cca453d930320217a970040bd

Commit: 59af6417bbb93a2cca453d930320217a970040bd

Tree: fd6967c4994cc8104c81c7a7867e4cf1affb5662

Author: Frank Denis

Committer: GitHub

## Message

```
crypto.ghash: define aggregate tresholds as blocks, not bytes (#13507)

These constants were read as a block count in initForBlockCount()
but at the same time, as a size in update().

The unit could be blocks or bytes, but we should use the same one
everywhere.

So, use blocks as intended.

Fixes #13506
```

## Parents

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

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