From 8e24c51233bf69e230bc92937e2829fd2835d5d1 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 21 Aug 2016 13:13:05 +0200 Subject: [PATCH] Fix commets for constants --- src/restic/repository/key.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/restic/repository/key.go b/src/restic/repository/key.go index 9e98aaa27..2599f6e2e 100644 --- a/src/restic/repository/key.go +++ b/src/restic/repository/key.go @@ -45,8 +45,11 @@ type Key struct { var KDFParams *crypto.KDFParams var ( - KDFTimeout = 500 * time.Millisecond // timeout for KDF - KDFMemory = 60 // max memory for KDF, in MiB + // KDFTimeout specifies the maximum runtime for the KDF. + KDFTimeout = 500 * time.Millisecond + + // KDFMemory limits the memory the KDF is allowed to use. + KDFMemory = 60 ) // createMasterKey creates a new master key in the given backend and encrypts