aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto/pbkdf2.zig
AgeCommit message (Collapse)Author
2023-11-19lib: correct unnecessary uses of 'var'mlugg
2023-10-23x86_64: implement enough to pass unicode testsJacob Young
* implement vector comparison * implement reduce for bool vectors * fix `@memcpy` bug * enable passing std tests
2023-10-22Revert "Revert "Merge pull request #17637 from jacobly0/x86_64-test-std""Jacob Young
This reverts commit 6f0198cadbe29294f2bf3153a27beebd64377566.
2023-10-22Revert "Merge pull request #17637 from jacobly0/x86_64-test-std"Andrew Kelley
This reverts commit 0c99ba1eab63865592bb084feb271cd4e4b0357e, reversing changes made to 5f92b070bf284f1493b1b5d433dd3adde2f46727. This caused a CI failure when it landed in master branch due to a 128-bit `@byteSwap` in std.mem.
2023-10-21x86_64: fix bugs and disable erroring testsJacob Young
2023-06-24all: migrate code to new cast builtin syntaxmlugg
Most of this migration was performed automatically with `zig fmt`. There were a few exceptions which I had to manually fix: * `@alignCast` and `@addrSpaceCast` cannot be automatically rewritten * `@truncate`'s fixup is incorrect for vectors * Test cases are not formatted, and their error locations change
2023-05-01Fix PBKDF2 docstring commentjcalabro
2023-04-28update codebase to use `@memset` and `@memcpy`Andrew Kelley
2023-02-18update std lib and compiler sources to new for loop syntaxAndrew Kelley
2021-08-24remove redundant license headers from zig standard libraryAndrew Kelley
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
2021-05-08std: update usage of std.testingVeikka Tuominen
2021-04-20std/crypto: use finer-grained error sets in function signatures (#8558)Frank Denis
std/crypto: use finer-grained error sets in function signatures Returning the `crypto.Error` error set for all crypto operations was very convenient to ensure that errors were used consistently, and to avoid having multiple error names for the same thing. The flipside is that callers were forced to always handle all possible errors, even those that could never be returned by a function. This PR makes all functions return union sets of the actual errors they can return. The error sets themselves are all limited to a single error. Larger sets are useful for platform-specific APIs, but we don't have any of these in `std/crypto`, and I couldn't find any meaningful way to build larger sets.
2021-03-17pbkdf2: use std.math.divCeil()Frank Denis
2021-03-16crypto/pbkdf2: use snake_case for variables like everywhere elseFrank Denis
2021-03-16crypto/pbkdf2: simplify the check for the max number of iterationsFrank Denis
2021-03-14Use a unified error set for std/crypto/*Frank Denis
This ensures that errors are used consistently across all operations.
2020-12-31Year++Frank Denis
2020-09-16Add an error setRocknest
2020-09-14flip conditionRocknest
2020-09-13fix buildRocknest
2020-09-13Convert asserts to errors, make sure nothing overflowsRocknest
2020-09-13pbkdf2 offset into dk should be usize, not u64.Rob Napier
2020-09-13Use comptime to expose public method to doc systemRob Napier
2020-09-13Extract kdf.zig to provide namespace documentationRob Napier
2020-09-13Explicitly reference std.crypto.kdf in test caseRob Napier
2020-09-13Improve doc textRob Napier
2020-09-12pbkdf2 "very large dklen test" should just check for crashesRob Napier
2020-09-12Replace Hash function with Prf. Correct offset bit-width.Rob Napier
2020-09-12Review comments from pbkdf2.zigRob Napier
Move block definitions inside while loop. Use usize for offset. (This still crashes on overflow) Remove unneeded slice syntax. Add slow test for Very large dkLen
2020-09-11Add crypto.kdf.pbkdf2Rob Napier