Skip to content
Snippets Groups Projects
Unverified Commit fa33eacd authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

crypto/ccm: fix _fits_in_nbytes function

Function is broken with num_bytes >= 4.

Could happen when storing input_len with len_encoding >= 4.
It can take values from 2 to 8, so make it work for cases it would overflow.
parent ee311a33
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment