fix crypto

This commit is contained in:
Matthias Radestock committed 2015-01-20 23:22:44 +00:00
1 parent 1181a0cb33
commit d089900632
1 file changed
+2 -1
+2 -1
View File
@@ -85,7 +85,8 @@ func EncodeNonce(df bool) (*[24]byte, []byte, error) {
flags = flags | 1 flags = flags | 1
} }
SetNonceLow15Bits(&nonce, flags) SetNonceLow15Bits(&nonce, flags)
return &nonce, nonce[:], nil // NB: need to make a copy since callers may modify the array
return &nonce, Concat(nonce[:]), nil
} }
func DecodeNonce(msg []byte) (bool, *[24]byte) { func DecodeNonce(msg []byte) (bool, *[24]byte) {