Update documentation

This commit is contained in:
Jeffrey Walton 2020-12-02 16:43:44 -05:00
parent 301c169f9a
commit f51dc25c12
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -1719,8 +1719,8 @@ public:
const DL_GroupParameters<T> &params = this->GetAbstractGroupParameters();
// Validation due to https://github.com/weidai11/cryptopp/issues/981
// We allow a caller to provide R and S in oversized buffer. R and S are
// read based on the field element size, and not the buffer size.
// We allow a caller to provide R and S in oversized buffer. R and S
// are read based on the field element size, and not the buffer size.
const size_t rLen = alg.RLen(params);
const size_t sLen = alg.SLen(params);
CRYPTOPP_ASSERT(signatureLength >= rLen + sLen);