View | Details | Raw Unified | Return to bug 252894 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/if_wg/module/wg_noise.c (-1 / +1 lines)
Lines 108-114 noise_local_set_private(struct noise_local *l, uint8_t private[NOISE_KEY_SIZE]) Link Here
108
108
109
	memcpy(l->l_private, private, NOISE_KEY_SIZE);
109
	memcpy(l->l_private, private, NOISE_KEY_SIZE);
110
	curve25519_clamp_secret(l->l_private);
110
	curve25519_clamp_secret(l->l_private);
111
	l->l_has_identity = curve25519_generate_public(l->l_public, private);
111
	l->l_has_identity = curve25519_generate_public(l->l_public, l->l_private);
112
112
113
	return l->l_has_identity ? 0 : ENXIO;
113
	return l->l_has_identity ? 0 : ENXIO;
114
}
114
}

Return to bug 252894