mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed offset calculation. * src/LibgcryptDHKeyExchange.h (computeSecret)
This commit is contained in:
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
Block a user