From 4d466c3412918346144dff609d8f706c6f002581 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 25 Nov 2015 19:30:32 +0100 Subject: diriv: Create gocryptfs.diriv in every directory --- cryptfs/cryptfs_names.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cryptfs/cryptfs_names.go') diff --git a/cryptfs/cryptfs_names.go b/cryptfs/cryptfs_names.go index a7a9a8c..1282f53 100644 --- a/cryptfs/cryptfs_names.go +++ b/cryptfs/cryptfs_names.go @@ -31,7 +31,7 @@ func (be *CryptFS) decryptName(cipherName string) (string, error) { } if len(bin)%aes.BlockSize != 0 { - return "", errors.New(fmt.Sprintf("Name len=%d is not a multiple of 16", len(bin))) + return "", fmt.Errorf("Decoded length %d is not a multiple of the AES block size", len(bin)) } iv := make([]byte, aes.BlockSize) // TODO ? -- cgit v1.2.3