]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/aont/oaep.go
Various stylistic and grammar fixes
[govpn.git] / src / cypherpunks.ru / govpn / aont / oaep.go
index 4b780ba427ed2e6f87e8d5724ed2488b4f8e8f17..a2329a3dd28187a3dc6a83cd64de946cbada643b 100644 (file)
@@ -1,6 +1,6 @@
 /*
 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
@@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License
 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)
@@ -43,12 +43,14 @@ import (
 )
 
 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