refactor: get rid of const.go

This commit is contained in:
Matthias Radestock committed 2015-11-07 16:32:23 +00:00
1 parent f3f23b43b5
commit d3d2863d52
3 files changed
+15 -21

No files matched your search

+2
View File
@@ -13,6 +13,8 @@ import (
"golang.org/x/crypto/nacl/secretbox"
)
const MaxTCPMsgSize = 10 * 1024 * 1024
func GenerateKeyPair() (publicKey, privateKey *[32]byte, err error) {
return box.GenerateKey(rand.Reader)
}