1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

fix bad offset

This commit is contained in:
Jeff Becker 2018-08-13 19:25:36 -04:00
parent 186bd7d573
commit c12da3dfc7
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -807,7 +807,7 @@ namespace llarp
// K
memcpy(tmp, K, 32);
// PKE (A, B, N)
if(!self->m_LocalIdentity.KeyExchange(self->crypto->dh_client, tmp + 64,
if(!self->m_LocalIdentity.KeyExchange(self->crypto->dh_client, tmp + 32,
self->remote, self->frame.N))
llarp::LogError("failed to derive x25519 shared key component");
// H (K + PKE(A, B, N))