FreeBSD Bugzilla – Attachment 221795 Details for
Bug 252894
Fix public key derivation if WireGuard implementation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
This fixes key derivation
wg_noise.c.patch (text/plain), 579 bytes, created by
shamaz.mazum
on 2021-01-21 18:45:10 UTC
(
hide
)
Description:
This fixes key derivation
Filename:
MIME Type:
Creator:
shamaz.mazum
Created:
2021-01-21 18:45:10 UTC
Size:
579 bytes
patch
obsolete
>diff --git a/sys/dev/if_wg/module/wg_noise.c b/sys/dev/if_wg/module/wg_noise.c >index 946a570916a..5a438151e70 100644 >--- a/sys/dev/if_wg/module/wg_noise.c >+++ b/sys/dev/if_wg/module/wg_noise.c >@@ -108,7 +108,7 @@ noise_local_set_private(struct noise_local *l, uint8_t private[NOISE_KEY_SIZE]) > > memcpy(l->l_private, private, NOISE_KEY_SIZE); > curve25519_clamp_secret(l->l_private); >- l->l_has_identity = curve25519_generate_public(l->l_public, private); >+ l->l_has_identity = curve25519_generate_public(l->l_public, l->l_private); > > return l->l_has_identity ? 0 : ENXIO; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252894
: 221795 |
221957