Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong assert if padding is disabled #21

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

Fix wrong assert if padding is disabled #21

wants to merge 25 commits into from

Conversation

simc
Copy link

@simc simc commented Mar 19, 2021

No description provided.

@inikulin inikulin requested review from wbl and vkrasnov March 26, 2021 13:50
@inikulin
Copy link
Collaborator

@leisim Could you give more context for the issue that this one fixes, please? Regression test would be useful too

@simc
Copy link
Author

simc commented Mar 26, 2021

@inikulin
This assert assert!(output.len() >= input.len() + block_size); requires the output size to be greater than the input size to make sure there is enough space for padding.
If no padding is used (not necessary if the input size is a multiple of the cipher block size) the output of the encryption has the exact same size as the input.

I'll add a regression test 👍

@inikulin
Copy link
Collaborator

inikulin commented Jun 1, 2021

@leisim seems like needs a rebase and a regression test

nox pushed a commit to nox/boring that referenced this pull request Jul 28, 2023
…atest tags

Merge in OXY/boring-rpk from scrat/update-images-5cb0d33b14bb9ed955c8df0a25455c1f10646182 to master

* commit 'a55301dc68dcdc5e35808597c921804cbd40b915':
  SEC-3915 - Upgrade Docker base images to get the latest security updates
@nox
Copy link
Collaborator

nox commented Oct 9, 2023

@simc Ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants