summaryrefslogtreecommitdiffhomepage
path: root/src/noise_helpers.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-06-24 22:03:52 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-06-24 22:03:52 +0200
commitcf3a5130d3aa53fc56c7c3194ee326d5a1d21970 (patch)
treef8d75da5338e7ef8115ee4da0f41ed7edd5f8fea /src/noise_helpers.go
parent25190e43369a79dc77a740dc8cd28b8a9fcb235e (diff)
Completed noise handshake
Diffstat (limited to 'src/noise_helpers.go')
-rw-r--r--src/noise_helpers.go17
1 files changed, 1 insertions, 16 deletions
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