diff options
| author | Frank Denis <github@pureftpd.org> | 2020-08-20 22:36:57 +0200 |
|---|---|---|
| committer | Frank Denis <github@pureftpd.org> | 2020-08-20 23:02:10 +0200 |
| commit | 446597bd3c935be632287a8ad6cfd72892d674e6 (patch) | |
| tree | d80af39c7fd2036b2d832407cdb39c86e87cdf5b /src/Module.zig | |
| parent | f92a5d79440402233bd0215e2bb2aeeb4f333931 (diff) | |
| download | zig-446597bd3c935be632287a8ad6cfd72892d674e6.tar.gz zig-446597bd3c935be632287a8ad6cfd72892d674e6.zip | |
Remove the reset() function from hash functions
Justification:
- reset() is unnecessary; states that have to be reused can be copied
- reset() is error-prone. Copying a previous state prevents forgetting
struct members.
- reset() forces implementation to store sensitive data (key, initial state)
in memory even when they are not needed.
- reset() is confusing as it has a different meaning elsewhere in Zig.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions
