Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericHash.HashSaltPersonal issue #95

Closed
DBenS opened this issue Jan 18, 2023 · 1 comment
Closed

GenericHash.HashSaltPersonal issue #95

DBenS opened this issue Jan 18, 2023 · 1 comment

Comments

@DBenS
Copy link

DBenS commented Jan 18, 2023

Although the code allows using GenericHash.HashSaltPersonal with a NULL key, the "HashSaltPersonal" procedure checks the key against "MIN_SIZE", which causes a function to refuse to work and causes .NET 4.8 compatibility issue.

if (key == null)
      key = Array.Empty<byte>();

if (key.Length > KEY_BYTES_MAX || key.Length < KEY_BYTES_MIN)
                throw new KeyOutOfRangeException(nameof(key), key?.Length ?? 0, $"key must be between {KEY_BYTES_MIN} and {KEY_BYTES_MAX} bytes in length.");

@ektrah ektrah closed this as completed in 65bdec7 Apr 27, 2024
@ektrah
Copy link
Owner

ektrah commented Apr 27, 2024

Fixed in v1.3.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants