MCPcopy Create free account
hub / github.com/encodeous/nylon / init

Function init

polyamide/device/noise-protocol.go:265–268  ·  view source on GitHub ↗

* Do basic precomputations */

()

Source from the content-addressed store, hash-verified

263/* Do basic precomputations
264 */
265func init() {
266 InitialChainKey = blake2s.Sum256([]byte(NoiseConstruction))
267 mixHash(&InitialHash, &InitialChainKey, []byte(WGIdentifier))
268}
269
270func (device *Device) CreateMessageInitiation(peer *Peer) (*MessageInitiation, error) {
271 device.staticIdentity.RLock()

Callers

nothing calls this directly

Calls 1

mixHashFunction · 0.85

Tested by

no test coverage detected