fix crypto
This commit is contained in:
1 parent
1181a0cb33
commit
d089900632
1 file changed
+2
-1
+2
-1
@@ -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) {
|
||||||
|
|||||||
Reference in new issue
Block a user