This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
+the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
nonce []byte,
doEncrypt bool,
r io.Reader,
- w io.Writer) (int, error) {
+ w io.Writer,
+) (int, error) {
var blkCtr uint64
ciphCtr := nonce[len(nonce)-8:]
buf := make([]byte, EncBlkSize+aead.Overhead())
nice uint8,
size, padSize int64,
data io.Reader,
- out io.Writer) error {
+ out io.Writer,
+) error {
pubEph, prvEph, err := box.GenerateKey(rand.Reader)
if err != nil {
return err
our *NodeOur,
nodes map[NodeId]*Node,
data io.Reader,
- out io.Writer) (*Node, int64, error) {
+ out io.Writer,
+) (*Node, int64, error) {
var pktEnc PktEnc
_, err := xdr.Unmarshal(data, &pktEnc)
if err != nil {