summaryrefslogtreecommitdiff
path: root/threefish.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-11-18 14:21:10 -0500
committerJeffrey Walton <noloader@gmail.com>2017-11-18 14:21:10 -0500
commit5f9b2b2a85550bca2d8c1683a33bde0ecc982a26 (patch)
tree1ae6e6366c0a10c22af55a98e6112ef9f3e129a0 /threefish.h
parent7f7c8485151db26b29e7417bd509e56c71218161 (diff)
downloadcryptopp-git-5f9b2b2a85550bca2d8c1683a33bde0ecc982a26.tar.gz
Fix algorithm names for Threefish (GH #535)
Algorithm name was returning " Threefish-32(32)" instead of "Threefish-256(256)"
Diffstat (limited to 'threefish.h')
-rw-r--r--threefish.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/threefish.h b/threefish.h
index d9167fee..a103e094 100644
--- a/threefish.h
+++ b/threefish.h
@@ -28,7 +28,7 @@ struct Threefish_Info : public FixedBlockSize<BS>, FixedKeyLength<BS>
static const std::string StaticAlgorithmName()
{
// Format is Cipher-Blocksize(Keylength)
- return "Threefish-" + IntToString(BS) + "(" + IntToString(BS) + ")";
+ return "Threefish-" + IntToString(BS*8) + "(" + IntToString(BS*8) + ")";
}
};