about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-23 22:40:53 -0700
committerbors <bors@rust-lang.org>2013-06-23 22:40:53 -0700
commit832fe327218e556740ba4e028b7b60cb41212469 (patch)
tree1adfee92371140df3490fbcd9c198cf3c9fa98e5 /src/rt/rust_kernel.cpp
parentac4211ef52a3577f901ed4dc7f370b05ca4e638d (diff)
parent711273f5b49bacb843d672884522cd6961037669 (diff)
downloadrust-832fe327218e556740ba4e028b7b60cb41212469.tar.gz
rust-832fe327218e556740ba4e028b7b60cb41212469.zip
auto merge of #7207 : DaGenix/rust/sha2, r=pcwalton
This pull request contains an unoptimized implementation of most of the SHA-2 functions (everything but the variable output size versions). I also created a common trait (Digest) for all of the interesting methods for working with digests and updated the existing SHA-1 code to use it. Finally, while working with the SHA-1 code, I got rid of the use of @ types and type objects.

I've tested all functions against the Wikipedia test vectors. Additionally, I tested the SHA-512, 384, and 256 variants against the Java implementations of those digests.

I did my best to try to follow Rust conventions, but, there are so many different conventions in the code base right now that I'm not sure if I'm following the correct one or not. Anyway, I'm happy to rework if I didn't get the coding convention right (or if there are bugs!).
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions