[PATCH 1/2] cipher: fix typo in error log

Jussi Kivilinna jussi.kivilinna at iki.fi
Mon Dec 23 02:43:49 CET 2019


* cipher/cipher.c (_gcry_cipher_encrypt): Fix log "cipher_decrypt: ..."
to "cipher_encrypt: ...".
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 0 files changed

diff --git a/cipher/cipher.c b/cipher/cipher.c
index ab3e4240e..bd571367c 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -1125,7 +1125,7 @@ _gcry_cipher_encrypt (gcry_cipher_hd_t h, void *out, size_t outsize,
 
   if (h->mode != GCRY_CIPHER_MODE_NONE && !h->marks.key)
     {
-      log_error ("cipher_decrypt: key not set\n");
+      log_error ("cipher_encrypt: key not set\n");
       return GPG_ERR_MISSING_KEY;
     }
 




More information about the Gcrypt-devel mailing list