mirror of https://github.com/aria2/aria2
2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed offset calculation. * src/LibgcryptDHKeyExchange.h (computeSecret)pull/1/head
parent
5a4d691aed
commit
1d32c516d9
|
@ -1,3 +1,8 @@
|
||||||
|
2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Fixed offset calculation.
|
||||||
|
* src/LibgcryptDHKeyExchange.h (computeSecret)
|
||||||
|
|
||||||
2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Rewritten itos and uitos using template. llitos and ullitos are
|
Rewritten itos and uitos using template. llitos and ullitos are
|
||||||
|
|
|
@ -151,7 +151,7 @@ public:
|
||||||
gcry_mpi_release(peerPublicKey);
|
gcry_mpi_release(peerPublicKey);
|
||||||
|
|
||||||
memset(out, 0, outLength);
|
memset(out, 0, outLength);
|
||||||
size_t secretBytes = (gcry_mpi_get_nbits(secret)+7/8);
|
size_t secretBytes = (gcry_mpi_get_nbits(secret)+7)/8;
|
||||||
size_t offset = _keyLength-secretBytes;
|
size_t offset = _keyLength-secretBytes;
|
||||||
size_t nwritten;
|
size_t nwritten;
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue