summaryrefslogtreecommitdiff
path: root/weighted_dist.go
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-05-16 00:11:53 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-05-16 00:11:53 +0000
commitf4877920f854b0b361e446d7a6ce91527c4f07ee (patch)
tree64723f4e37a91f68ccf8d27a45f711d7ff151f63 /weighted_dist.go
parent77090696177d7b0a9dfd5a11c0ac7dbaa3623d6b (diff)
Change the handshake wire format.
* HMAC-SHA256 -> HMAC-SHA256-128. * Mark/MAC are now both caluclated using Public Key | NodeID. This breaks wire protocol compatibility.
Diffstat (limited to 'weighted_dist.go')
-rw-r--r--weighted_dist.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weighted_dist.go b/weighted_dist.go
index 3a6d5b0..067adaf 100644
--- a/weighted_dist.go
+++ b/weighted_dist.go
@@ -38,6 +38,7 @@ import (
"github.com/dchest/siphash"
)
+// DrbgSeedLength is the length of the hashDrbg seed.
const DrbgSeedLength = 32
// DrbgSeed is the initial state for a hashDrbg. It consists of a SipHash-2-4