Skip to content

Commit

Permalink
Merge pull request Cathedrow#9 from sterling/master
Browse files Browse the repository at this point in the history
write should return the number of successful bytes written
  • Loading branch information
spaniakos authored Sep 2, 2016
2 parents dd2db77 + c0f6229 commit 1255b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sha/sha1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void Sha1Class::addUncounted(uint8_t data) {
size_t Sha1Class::write(uint8_t data) {
++byteCount;
addUncounted(data);
return 0;
return 1;
}

void Sha1Class::pad() {
Expand Down
2 changes: 1 addition & 1 deletion Sha/sha256.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void Sha256Class::addUncounted(uint8_t data) {
size_t Sha256Class::write(uint8_t data) {
++byteCount;
addUncounted(data);
return 0;
return 1;
}

void Sha256Class::pad() {
Expand Down

0 comments on commit 1255b5f

Please sign in to comment.