Update documentation

pull/877/head
Jeffrey Walton 2019-08-11 22:37:15 -04:00
parent 247418eec0
commit 2d6895acb4
2 changed files with 3 additions and 3 deletions

View File

@ -33,9 +33,9 @@ CRYPTOPP_DLL_TEMPLATE_CLASS AbstractEuclideanDomain<Integer>;
/// only one such data member for holding results, you should use the /// only one such data member for holding results, you should use the
/// class like this: /// class like this:
/// <pre> abcd = group.Add(a, group.Add(b, group.Add(c,d));</pre> /// <pre> abcd = group.Add(a, group.Add(b, group.Add(c,d));</pre>
/// The following code will produce incorrect results: /// The following code will produce <i>incorrect</i> results:
/// <pre> abcd = group.Add(group.Add(a,b), group.Add(c,d));</pre> /// <pre> abcd = group.Add(group.Add(a,b), group.Add(c,d));</pre>
/// \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 /// is copied, but not the internal data members. The internal data
/// members are undefined after copy or assignment. /// members are undefined after copy or assignment.
/// \sa <A HREF="https://cryptopp.com/wiki/Integer">Integer</A> on the /// \sa <A HREF="https://cryptopp.com/wiki/Integer">Integer</A> on the

View File

@ -1680,7 +1680,7 @@ public:
const DL_ElgamalLikeSignatureAlgorithm<T> &alg = this->GetSignatureAlgorithm(); const DL_ElgamalLikeSignatureAlgorithm<T> &alg = this->GetSignatureAlgorithm();
const DL_GroupParameters<T> &params = this->GetAbstractGroupParameters(); const DL_GroupParameters<T> &params = this->GetAbstractGroupParameters();
size_t rLen = alg.RLen(params); const size_t rLen = alg.RLen(params);
ma.m_semisignature.Assign(signature, rLen); ma.m_semisignature.Assign(signature, rLen);
ma.m_s.Decode(signature+rLen, alg.SLen(params)); ma.m_s.Decode(signature+rLen, alg.SLen(params));