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

KMC shivf_len vs iv_len #409

Open
Donnie-Ice opened this issue Feb 21, 2025 · 2 comments
Open

KMC shivf_len vs iv_len #409

Donnie-Ice opened this issue Feb 21, 2025 · 2 comments
Assignees
Labels
kmc NASA JPL KMC

Comments

@Donnie-Ice
Copy link
Contributor

Investigate how TC_apply handles an shivf_len (12) less than iv_len (16) in KMC. It was reported that a test that used to pass is now failing.

Some KMC tests that are failing now, and were passing before, are for the truncated IV case (particularly, when the iv is 16 bytes and shivf is 12 bytes for AES-GCM). Has something changed in the way CryptoLib handles truncated IVs? Is it possible that CryptoLib was passing the shivf value to the KMC Crypto Service, and is now passing the iv value (which is the correct thing to do).

Note that KMC only accepts iv_len of 12 for AES_GCM.

@Donnie-Ice Donnie-Ice added the kmc NASA JPL KMC label Feb 21, 2025
@Donnie-Ice Donnie-Ice self-assigned this Feb 21, 2025
@Donnie-Ice
Copy link
Contributor Author

@dccutrig dccutrig self-assigned this Mar 17, 2025
@Donnie-Ice
Copy link
Contributor Author

This has not been brought up again, so may have resolved itself on their side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kmc NASA JPL KMC
Projects
Status: No status
Development

No branches or pull requests

2 participants