summaryrefslogtreecommitdiff
path: root/xed25519.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-01-02 13:39:59 -0500
committerJeffrey Walton <noloader@gmail.com>2019-01-02 13:39:59 -0500
commit60ffc2ec01f7bf28887cd2cb347fb158017cd980 (patch)
treeb8d8fa8213d5d277466fe2c946540d8f79151a7d /xed25519.h
parent1a4b851ac170b16c9d07c73d387386a6883d938c (diff)
downloadcryptopp-git-60ffc2ec01f7bf28887cd2cb347fb158017cd980.tar.gz
Fix missing ed25519 MessageAccumulator Update
Diffstat (limited to 'xed25519.h')
-rw-r--r--xed25519.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xed25519.h b/xed25519.h
index 1f270174..cfa61dde 100644
--- a/xed25519.h
+++ b/xed25519.h
@@ -282,6 +282,14 @@ struct ed25519_MessageAccumulator : public PK_MessageAccumulator
CRYPTOPP_UNUSED(rng); Restart();
}
+ /// \brief Add data to the accumulator
+ /// \param msg pointer to the data to accumulate
+ /// \param len the size of the data, in bytes
+ void Update(const byte* msg, size_t len) {
+ if (msg && len)
+ m_msg.insert(m_msg.end(), msg, msg+len);
+ }
+
/// \brief Reset the accumulator
void Restart() {
m_msg.reserve(RESERVE_SIZE);