From cf3a5130d3aa53fc56c7c3194ee326d5a1d21970 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Sat, 24 Jun 2017 22:03:52 +0200 Subject: Completed noise handshake --- src/noise_helpers.go | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'src/noise_helpers.go') diff --git a/src/noise_helpers.go b/src/noise_helpers.go index eadbc07..e163ace 100644 --- a/src/noise_helpers.go +++ b/src/noise_helpers.go @@ -45,22 +45,7 @@ func KDF3(key []byte, input []byte) (t0 [blake2s.Size]byte, t1 [blake2s.Size]byt return } -/* - * - */ - -func addToChainKey(c [blake2s.Size]byte, data []byte) [blake2s.Size]byte { - return KDF1(c[:], data) -} - -func addToHash(h [blake2s.Size]byte, data []byte) [blake2s.Size]byte { - return blake2s.Sum256(append(h[:], data...)) -} - -/* Curve25519 wrappers - * - * TODO: Rethink this - */ +/* curve25519 wrappers */ func newPrivateKey() (sk NoisePrivateKey, err error) { // clamping: https://cr.yp.to/ecdh.html -- cgit v1.2.3-59-g8ed1b