diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-10-13 21:40:07 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-10-13 21:40:07 +0900 |
| commit | 310e58bc621803917179c80b399013cf8b80e245 (patch) | |
| tree | 9ef55317e75ba1f3d378e70a50a191659e73bc38 /src/Piece.cc | |
| parent | c2eb9d791a06baa4d28046813c25f4da137faa77 (diff) | |
Stored hash value as raw byte string, instead of hex digest.
Diffstat (limited to 'src/Piece.cc')
| -rw-r--r-- | src/Piece.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Piece.cc b/src/Piece.cc index f6f8c63a..a0698c3e 100644 --- a/src/Piece.cc +++ b/src/Piece.cc @@ -218,12 +218,12 @@ bool Piece::isHashCalculated() const return mdctx_ && nextBegin_ == length_; } -std::string Piece::getHashString() +std::string Piece::getDigest() { if(!mdctx_) { return A2STR::NIL; } else { - std::string hash = mdctx_->hexDigest(); + std::string hash = mdctx_->digest(); destroyHashContext(); return hash; } |
