Skip to content
Snippets Groups Projects
Commit 8b115658 authored by Constantin Papizh's avatar Constantin Papizh
Browse files

bf size info

parent 8ec6154e
No related branches found
No related tags found
3 merge requests!251Master,!250Master,!240bf size info
Pipeline #6030 passed with stage
in 11 seconds
...@@ -103,7 +103,7 @@ size_t dap_enc_bf_cbc_calc_decode_max_size(const size_t size_in) ...@@ -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 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) { 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) { 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; return 0;
} }
uint8_t iv[BLOWFISH_BLOCK_SIZE]; uint8_t iv[BLOWFISH_BLOCK_SIZE];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment