Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #687 from zig-lang/sha2
Add Sha2 functions
- Loading branch information
Showing
5 changed files
with
717 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
pub const Sha1 = @import("md5.zig").Sha1; | ||
pub const Md5 = @import("sha1.zig").Md5; | ||
pub const Sha1 = @import("md5.zig").Sha1; | ||
|
||
const sha2 = @import("sha2.zig"); | ||
pub const Sha224 = sha2.Sha224; | ||
pub const Sha256 = sha2.Sha256; | ||
pub const Sha384 = sha2.Sha384; | ||
pub const Sha512 = sha2.Sha512; | ||
|
||
test "crypto" { | ||
_ = @import("md5.zig"); | ||
_ = @import("sha1.zig"); | ||
_ = @import("sha2.zig"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.