summaryrefslogtreecommitdiff
path: root/ext/digest/sha2
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-06 12:12:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-06 12:12:32 +0000
commit2bfa64d0b86e87e2cc63368f9a5fecbaba8add89 (patch)
treec5dbf4e3ce301d872a0cca025c267763b89df611 /ext/digest/sha2
parent7fdaba27ca72294fd12f8cc8a8a2a1d4db25948d (diff)
* ext/digest/sha2/sha2.c (*_Final): typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/sha2')
-rw-r--r--ext/digest/sha2/sha2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c
index 388cbf0..65f15df 100644
--- a/ext/digest/sha2/sha2.c
+++ b/ext/digest/sha2/sha2.c
@@ -569,9 +569,9 @@ void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) {
}
#ifdef RUBY
-void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
-#else
void SHA256_Finish(SHA256_CTX* context, sha2_byte digest[]) {
+#else
+void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
#endif
sha2_word32 *d = (sha2_word32*)digest;
unsigned int usedspace;
@@ -940,9 +940,9 @@ void SHA512_Last(SHA512_CTX* context) {
}
#ifdef RUBY
-void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
-#else
void SHA512_Finish(SHA512_CTX* context, sha2_byte digest[]) {
+#else
+void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
#endif
sha2_word64 *d = (sha2_word64*)digest;
@@ -1023,9 +1023,9 @@ void SHA384_Update(SHA384_CTX* context, const sha2_byte* data, size_t len) {
}
#ifdef RUBY
-void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
-#else
void SHA384_Finish(SHA384_CTX* context, sha2_byte digest[]) {
+#else
+void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
#endif
sha2_word64 *d = (sha2_word64*)digest;