aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2022-12-29 11:29:50 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-12-29 17:56:50 -0500
commit0d83487dd098f9498d907f06535e645cc8bcf3de (patch)
tree28e9dd0bc357ea10fb6b8d8638709ebe4470ca25 /src/main.zig
parent9b665a59f27b4de0ae648438617b0a1a08a620c1 (diff)
downloadzig-0d83487dd098f9498d907f06535e645cc8bcf3de.tar.gz
zig-0d83487dd098f9498d907f06535e645cc8bcf3de.zip
hkdf: add prk_length and extractInit()
The HKDF extract function uses HMAC under the hood, but requiring applications to directly use HMAC functions reduces clarity and feels like the wrong abstraction. So, in order to get the PRK length, add a `prk_length` constant that applications can use directly. Also add an `extractInit()` function for cases where the keying material has to be provided as multiple chunks.
Diffstat (limited to 'src/main.zig')
0 files changed, 0 insertions, 0 deletions