From 2d6895acb4fed3e674844a9aa1741e2869a5c084 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 11 Aug 2019 22:37:15 -0400 Subject: [PATCH] Update documentation --- modarith.h | 4 ++-- pubkey.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modarith.h b/modarith.h index bd68f012..84ceba57 100644 --- a/modarith.h +++ b/modarith.h @@ -33,9 +33,9 @@ CRYPTOPP_DLL_TEMPLATE_CLASS AbstractEuclideanDomain; /// only one such data member for holding results, you should use the /// class like this: ///
    abcd = group.Add(a, group.Add(b, group.Add(c,d));
-/// The following code will produce incorrect results: +/// The following code will produce incorrect results: ///
    abcd = group.Add(group.Add(a,b), group.Add(c,d));
-/// \details If a ModularArithmetic is copied or assigned the modulus +/// \details If a ModularArithmetic() is copied or assigned the modulus /// is copied, but not the internal data members. The internal data /// members are undefined after copy or assignment. /// \sa Integer on the diff --git a/pubkey.h b/pubkey.h index 6a43a872..2dbfeb95 100644 --- a/pubkey.h +++ b/pubkey.h @@ -1680,7 +1680,7 @@ public: const DL_ElgamalLikeSignatureAlgorithm &alg = this->GetSignatureAlgorithm(); const DL_GroupParameters ¶ms = this->GetAbstractGroupParameters(); - size_t rLen = alg.RLen(params); + const size_t rLen = alg.RLen(params); ma.m_semisignature.Assign(signature, rLen); ma.m_s.Decode(signature+rLen, alg.SLen(params));