From 3611487952c4ef126689c447a60cd5cd9288b32f Mon Sep 17 00:00:00 2001 From: lucky <53379023+x13a@users.noreply.github.com> Date: Thu, 9 Sep 2021 15:25:44 +0300 Subject: [PATCH] reexport crypto/phc_encoding (#9712) Co-authored-by: lucky <> --- lib/std/crypto.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/std/crypto.zig b/lib/std/crypto.zig index e00e331b46..f052b0bb4f 100644 --- a/lib/std/crypto.zig +++ b/lib/std/crypto.zig @@ -109,9 +109,11 @@ pub const pwhash = struct { crypt, }; pub const KdfError = errors.Error || std.mem.Allocator.Error; - pub const HasherError = KdfError || @import("crypto/phc_encoding.zig").Error; + pub const HasherError = KdfError || phc_format.Error; pub const Error = HasherError || error{AllocatorRequired}; + pub const phc_format = @import("crypto/phc_encoding.zig"); + pub const bcrypt = @import("crypto/bcrypt.zig"); pub const scrypt = @import("crypto/scrypt.zig"); pub const pbkdf2 = @import("crypto/pbkdf2.zig").pbkdf2;