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

Unusual IV for AES_CBC #101

Open
rnapier opened this issue Jun 26, 2019 · 2 comments
Open

Unusual IV for AES_CBC #101

rnapier opened this issue Jun 26, 2019 · 2 comments

Comments

@rnapier
Copy link

rnapier commented Jun 26, 2019

In jwe.c, _cjose_jwe_set_iv_aes_cbc creates different sized IVs depending on the key size. This doesn't seem correct; the CBC IV is based on the block size, which is always 16 bytes for AES, not the key size. I can't find a specific example in RFC7516 of AES256 to confirm my understanding; have I misunderstood something about the spec?

@securedimensions
Copy link

We had an issue with the Qt Cryptographic library due to the varying size of the IV for different key sizes.

This pull request uses a fixed size of 16 Byte: #112

@zandbelt
Copy link
Contributor

zandbelt commented Apr 5, 2022

this was merged here:
OpenIDC#11
and part of the maintenance fork here:
https://github.com/OpenIDC/cjose/tree/version-0.6.2.x

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

No branches or pull requests

3 participants