]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/encless.go
Various stylistic and grammar fixes
[govpn.git] / src / cypherpunks.ru / govpn / encless.go
index 86e59f442bcc011bc861ec6d32126606f8cd392c..c0998f25e53ae6a93d871fe2e782ca73660e5e54 100644 (file)
@@ -25,10 +25,10 @@ import (
        "cypherpunks.ru/govpn/cnw"
 )
 
-// EnclessEnlargeSize TODO
+// EnclessEnlargeSize is number of bytes overhead for each message
 const EnclessEnlargeSize = aont.HSize + aont.RSize*cnw.EnlargeFactor
 
-// EnclessEncode is a confidentiality preserving (but encryptionless) encoding.
+// EnclessEncode is encryptionless, but confidentiality preserving encoding.
 //
 // It uses Chaffing-and-Winnowing technology (it is neither
 // encryption nor steganography) over All-Or-Nothing-Transformed data.
@@ -52,7 +52,7 @@ func EnclessEncode(authKey *[32]byte, nonce *[16]byte, in []byte) ([]byte, error
        return out, nil
 }
 
-// EnclessDecode decode EnclessEncode-ed data.
+// EnclessDecode decodes EnclessEncode-ed data.
 func EnclessDecode(authKey *[32]byte, nonce *[16]byte, in []byte) ([]byte, error) {
        var err error
        winnowed, err := cnw.Winnow(