Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1503348
| From | Richard Weinberger <richard@nod.at> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] fscrypto: Fix log string in do_crypto() |
| Date | 2016-10-18 23:00 +0200 |
| Message-ID | <stJEm-79N-13@gated-at.bofh.it> (permalink) |
| References | <stJEm-79N-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The operations supports both encryption and decryption.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
fs/crypto/crypto.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c
index 61057b7dbddb..1637a0450b9f 100644
--- a/fs/crypto/crypto.c
+++ b/fs/crypto/crypto.c
@@ -194,8 +194,9 @@ static int do_page_crypto(struct inode *inode,
skcipher_request_free(req);
if (res) {
printk_ratelimited(KERN_ERR
- "%s: crypto_skcipher_encrypt() returned %d\n",
- __func__, res);
+ "%s: crypto_skcipher_%scrypt() returned %d, flags %#x\n",
+ __func__, rw == FS_DECRYPT ? "de" : "en", res,
+ crypto_skcipher_get_flags(tfm));
return res;
}
return 0;
--
2.7.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
fscrypto: Two trivial patches Richard Weinberger <richard@nod.at> - 2016-10-18 23:00 +0200
[PATCH 2/2] fscrypto: Fix fscrypt_decrypt_page() doc string Richard Weinberger <richard@nod.at> - 2016-10-18 23:00 +0200
Re: [PATCH 2/2] fscrypto: Fix fscrypt_decrypt_page() doc string Eric Biggers <ebiggers@google.com> - 2016-10-21 22:10 +0200
[PATCH 1/2] fscrypto: Fix log string in do_crypto() Richard Weinberger <richard@nod.at> - 2016-10-18 23:00 +0200
Re: [PATCH 1/2] fscrypto: Fix log string in do_crypto() Eric Biggers <ebiggers@google.com> - 2016-10-21 22:10 +0200
csiph-web