diff options
author | lloyd <[email protected]> | 2010-10-01 03:46:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-01 03:46:16 +0000 |
commit | 2f1e2b6167ede7c37efd8800555633a4c79d82fe (patch) | |
tree | fb8237a74d70c1af7163fcb4e590d955cf3fe9f4 /src/sym_algo | |
parent | da67713c92db146beba76dcf3b46291b1b8141ae (diff) |
Also deal with short values in OctetString
Diffstat (limited to 'src/sym_algo')
-rw-r--r-- | src/sym_algo/symkey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sym_algo/symkey.cpp b/src/sym_algo/symkey.cpp index 63b3e75b7..4452fd8fb 100644 --- a/src/sym_algo/symkey.cpp +++ b/src/sym_algo/symkey.cpp @@ -28,7 +28,7 @@ OctetString::OctetString(RandomNumberGenerator& rng, */ void OctetString::change(const std::string& hex_string) { - SecureVector<byte> decoded(hex_string.length() / 2); + SecureVector<byte> decoded(1 + hex_string.length() / 2); u32bit written = hex_decode(&decoded[0], hex_string); |