Permalink
Browse files

Implement sha256_print for Str arguments

  • Loading branch information...
1 parent 20797e0 commit 57b89f3c0abcd97d044bf3e5378d4347dea1c350 Carlin committed Dec 27, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/Digest/SHA256.pm
View
@@ -86,10 +86,14 @@ multi sub sha256_hex(@msg) is export {
return nqp::p6box_s($PD.sha_hex());
}
-sub sha256_print(@sum) is export {
- sha256_sum(@sum);
+multi sub sha256_print($sum) is export {
+ sha256_sum($sum);
return nqp::p6box_s($PD.sha_print());
}
+multi sub sha256_print(@sum) is export {
+ return sha256_print(@sum.join);
+}
+
# vim: ft=perl6

0 comments on commit 57b89f3

Please sign in to comment.