/*
GoVPN -- simple secure free software virtual private network daemon
-Copyright (C) 2014-2016 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2017 Sergey Matveev <stargrave@stargrave.org>
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
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// All-Or-Nothing-Transform, based on OAEP.
+// Package aont stands for All-Or-Nothing-Transform, based on OAEP.
//
// This package implements OAEP (Optimal Asymmetric Encryption Padding)
// (http://cseweb.ucsd.edu/~mihir/papers/oaep.html)
)
const (
+ // HSize size of generated hash output in terms of OAEP
HSize = 32
+ // RSize size of generated random output in terms of OAEP
RSize = 16
)
var (
- dummyNonce *[16]byte = new([16]byte)
+ dummyNonce = new([16]byte)
)
// Encode the data, produce AONT package. Data size will be larger than