diff options
author | Jakob Unterwurzacher | 2017-04-29 14:50:58 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2017-04-29 14:50:58 +0200 |
commit | edb3e19cb5543c580261052395d461fa47c7cf58 (patch) | |
tree | 293271bda453e8120fe271d2d146a73d852b90ca /internal/siv_aead | |
parent | 7d38f80a78644c8ec4900cc990bfb894387112ed (diff) |
fix golint complaints
Diffstat (limited to 'internal/siv_aead')
-rw-r--r-- | internal/siv_aead/siv_aead.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/siv_aead/siv_aead.go b/internal/siv_aead/siv_aead.go index d5df4ac..9b85fde 100644 --- a/internal/siv_aead/siv_aead.go +++ b/internal/siv_aead/siv_aead.go @@ -16,13 +16,15 @@ type sivAead struct { var _ cipher.AEAD = &sivAead{} const ( + // KeyLen is the required key length. The SIV algorithm supports other lengths, + // but we only support 64. KeyLen = 64 ) // New returns a new cipher.AEAD implementation. func New(key []byte) cipher.AEAD { if len(key) != KeyLen { - // SIV supports more 32, 48 or 64-byte keys, but in gocryptfs we + // SIV supports 32, 48 or 64-byte keys, but in gocryptfs we // exclusively use 64. log.Panicf("Key must be %d byte long (you passed %d)", KeyLen, len(key)) } |