From f4877920f854b0b361e446d7a6ce91527c4f07ee Mon Sep 17 00:00:00 2001 From: Yawning Angel Date: Fri, 16 May 2014 00:11:53 +0000 Subject: 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. --- ntor/ntor.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ntor') diff --git a/ntor/ntor.go b/ntor/ntor.go index 0744d20..eecf038 100644 --- a/ntor/ntor.go +++ b/ntor/ntor.go @@ -147,6 +147,10 @@ func NodeIDFromBase64(encoded string) (*NodeID, error) { return NewNodeID(raw) } +// Bytes returns a pointer to the raw NodeID. +func (id *NodeID) Bytes() *[NodeIDLength]byte { + return (*[NodeIDLength]byte)(id) +} // Base64 returns the Base64 representation of the NodeID. func (id *NodeID) Base64() string { -- cgit v1.2.3