| ... | @@ -109,9 +109,11 @@ pub const pwhash = struct { | ... | @@ -109,9 +109,11 @@ pub const pwhash = struct { |
| 109 | crypt, | 109 | crypt, |
| 110 | }; | 110 | }; |
| 111 | pub const KdfError = errors.Error || std.mem.Allocator.Error; | 111 | pub const KdfError = errors.Error || std.mem.Allocator.Error; |
| 112 | pub const HasherError = KdfError || @import("crypto/phc_encoding.zig").Error; | 112 | pub const HasherError = KdfError || phc_format.Error; |
| 113 | pub const Error = HasherError || error{AllocatorRequired}; | 113 | pub const Error = HasherError || error{AllocatorRequired}; |
| 114 | | 114 | |
| | 115 | pub const phc_format = @import("crypto/phc_encoding.zig"); |
| | 116 | |
| 115 | pub const bcrypt = @import("crypto/bcrypt.zig"); | 117 | pub const bcrypt = @import("crypto/bcrypt.zig"); |
| 116 | pub const scrypt = @import("crypto/scrypt.zig"); | 118 | pub const scrypt = @import("crypto/scrypt.zig"); |
| 117 | pub const pbkdf2 = @import("crypto/pbkdf2.zig").pbkdf2; | 119 | pub const pbkdf2 = @import("crypto/pbkdf2.zig").pbkdf2; |