SHA-256: Difference between revisions

33 bytes removed ,  11 years ago
→‎{{header|Perl 6}}: making prototype implicit
m (→‎{{header|Perl 6}}: renaming function)
(→‎{{header|Perl 6}}: making prototype implicit)
Line 16:
sub rotr($n, $b) { $n +> $b +| $n +< (32 - $b) }
 
proto SHA-256($) returns Buf {*}
multi SHA-256(Str $s) { sha256 Buf.new: $s.ords }
multi SHA-256(Buf $data) {
1,934

edits