Update documentation
parent
247418eec0
commit
2d6895acb4
|
|
@ -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
|
||||||
|
|
|
||||||
2
pubkey.h
2
pubkey.h
|
|
@ -1680,7 +1680,7 @@ public:
|
||||||
const DL_ElgamalLikeSignatureAlgorithm<T> &alg = this->GetSignatureAlgorithm();
|
const DL_ElgamalLikeSignatureAlgorithm<T> &alg = this->GetSignatureAlgorithm();
|
||||||
const DL_GroupParameters<T> ¶ms = this->GetAbstractGroupParameters();
|
const DL_GroupParameters<T> ¶ms = 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));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue