From 8b11565899dc8a7e5bbc6c0ecff985130672b9ce Mon Sep 17 00:00:00 2001
From: Constantin Papizh <p.const@bk.ru>
Date: Tue, 27 Oct 2020 09:27:06 +0300
Subject: [PATCH] bf size info

---
 dap-sdk/crypto/src/dap_enc_bf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dap-sdk/crypto/src/dap_enc_bf.c b/dap-sdk/crypto/src/dap_enc_bf.c
index 86681c1649..0f7d8d06f5 100644
--- a/dap-sdk/crypto/src/dap_enc_bf.c
+++ b/dap-sdk/crypto/src/dap_enc_bf.c
@@ -103,7 +103,7 @@ size_t dap_enc_bf_cbc_calc_decode_max_size(const size_t size_in)
 size_t dap_enc_bf_cbc_decrypt_fast(struct dap_enc_key *a_key, const void * a_in,
         size_t a_in_size, void * a_out, size_t buf_out_size) {
     if(a_in_size - BLOWFISH_BLOCK_SIZE > buf_out_size || a_in_size %BLOWFISH_BLOCK_SIZE || a_in_size <= BLOWFISH_BLOCK_SIZE) {
-        log_it(L_ERROR, "blowfish_cbc fast_decryption too small buf_out_size or not 8*k");
+        log_it(L_ERROR, "blowfish_cbc: incorrect buf size %d", a_in_size);
         return 0;
     }
     uint8_t iv[BLOWFISH_BLOCK_SIZE];
-- 
GitLab