nametransform: downgrade invalid length warning

This happens all the time in reverse mode when somebody stats
an encrypted symlink target.
This commit is contained in:
Jakob Unterwurzacher 2016-09-25 19:50:16 +02:00
parent 5f4b16c00f
commit 28838a489d
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (n *NameTransform) DecryptName(cipherName string, iv []byte) (string, error
return "", err
}
if len(bin)%aes.BlockSize != 0 {
tlog.Warn.Printf("DecryptName %q: decoded length %d is not a multiple of 16", cipherName, len(bin))
tlog.Debug.Printf("DecryptName %q: decoded length %d is not a multiple of 16", cipherName, len(bin))
return "", syscall.EINVAL
}
bin = eme.Transform(n.cryptoCore.BlockCipher, iv, bin, eme.DirectionDecrypt)