DescriptionEnsure that RSA signatures have the correct length
TLS Lite generates RSA signatures by converting a large integer that
holds the signature to a byte string. It does not apply any padding so
that if the signature starts with sufficiently many zero bits, the byte
string will be shorter than expected (it should have the same length as
the key's modulus).
This bug was fixed in trunk TLS Lite but is still present in our fork. The
fix in trunk TLS Lite was spread over two commits:
* Add a |howManyBytes| argument to the numberToBytes() method:
https://github.com/trevp/tlslite/commit/
4278f558c2c519684ab35e9fc84887c15a11ea16
* Specify |howManyBytes| when generating an RSA signature:
https://github.com/trevp/tlslite/commit/
0b8b2b4122109f22900ec929432308dd685f1d45
BUG=331761
TEST=Manual
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251797
Patch Set 1 : #Patch Set 2 : Small correction to README.chromium. #
Messages
Total messages: 17 (0 generated)
|