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