Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
16
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
41a901f1
Commit
41a901f1
authored
4 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Plain Diff
Merge branch 'feat-4594' into 'master'
bf size info See merge request
!240
parents
8ec6154e
8b115658
No related branches found
Branches containing commit
No related tags found
3 merge requests
!251
Master
,
!250
Master
,
!240
bf size info
Pipeline
#6033
passed with stage
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap-sdk/crypto/src/dap_enc_bf.c
+1
-1
1 addition, 1 deletion
dap-sdk/crypto/src/dap_enc_bf.c
with
1 addition
and
1 deletion
dap-sdk/crypto/src/dap_enc_bf.c
+
1
−
1
View file @
41a901f1
...
...
@@ -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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment