mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
Update crypto.go
This commit is contained in:
parent
73f50af3b7
commit
729d2ca2ba
@ -215,7 +215,7 @@ func GetSharedKey(myPrivKey *BoxPrivKey,
|
|||||||
return (*BoxSharedKey)(&shared)
|
return (*BoxSharedKey)(&shared)
|
||||||
}
|
}
|
||||||
|
|
||||||
// BoxOpen returns a message and true if it successful opens a crypto box using the provided shared key and nonce.
|
// BoxOpen returns a message and true if it successfully opens a crypto box using the provided shared key and nonce.
|
||||||
func BoxOpen(shared *BoxSharedKey,
|
func BoxOpen(shared *BoxSharedKey,
|
||||||
boxed []byte,
|
boxed []byte,
|
||||||
nonce *BoxNonce) ([]byte, bool) {
|
nonce *BoxNonce) ([]byte, bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user