aboutsummaryrefslogtreecommitdiff
path: root/cryptfs
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs')
-rw-r--r--cryptfs/cryptfs_content.go2
-rw-r--r--cryptfs/log.go4
-rw-r--r--cryptfs/nonce.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/cryptfs/cryptfs_content.go b/cryptfs/cryptfs_content.go
index b3c7f95..0ebf34d 100644
--- a/cryptfs/cryptfs_content.go
+++ b/cryptfs/cryptfs_content.go
@@ -22,7 +22,7 @@ func (be *CryptFS) DecryptBlock(ciphertext []byte) ([]byte, error) {
}
if len(ciphertext) < NONCE_LEN {
- warn.Printf("decryptBlock: Block is too short: %d bytes\n", len(ciphertext))
+ Warn.Printf("decryptBlock: Block is too short: %d bytes\n", len(ciphertext))
return nil, errors.New("Block is too short")
}
diff --git a/cryptfs/log.go b/cryptfs/log.go
index 947b1c3..f9c46c8 100644
--- a/cryptfs/log.go
+++ b/cryptfs/log.go
@@ -15,5 +15,5 @@ func (l logChannel) Printf(format string, args ...interface{}) {
}
-var debug = logChannel{true}
-var warn = logChannel{true}
+var Debug = logChannel{false}
+var Warn = logChannel{true}
diff --git a/cryptfs/nonce.go b/cryptfs/nonce.go
index 3803b8c..f93f59c 100644
--- a/cryptfs/nonce.go
+++ b/cryptfs/nonce.go
@@ -49,7 +49,7 @@ func (n *nonce96) Get() []byte {
binary.BigEndian.PutUint64(r[4:12], n.low64)
n.lock.Unlock()
- debug.Printf("nonce96.Get(): %s\n", hex.EncodeToString(r))
+ Debug.Printf("nonce96.Get(): %s\n", hex.EncodeToString(r))
return r
}