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

Data structures for CMS password-encrypted data complete? #287

Open
jjedele opened this issue Jan 10, 2025 · 0 comments
Open

Data structures for CMS password-encrypted data complete? #287

jjedele opened this issue Jan 10, 2025 · 0 comments

Comments

@jjedele
Copy link

jjedele commented Jan 10, 2025

Hey,

I'm currently trying to use this library to create a password-encrypted CMS structure, which is following the standard and can be decrypted again using e.g. OpenSSL.

My reference data generated using OpenSSL (echo "test" | openssl cms -aes-256-cbc -encrypt -pwri_password password -outform DER > test.der) looks like this:

image

What I manage to create using this library is the following:

image

Note the additional nesting of the password encryption algorithm in a pwriKEK sequence in the first example generated by OpenSSL. I have to say I find the RFCs defining CMS pretty confusing, but according to https://datatracker.ietf.org/doc/html/rfc3211#section-2.2 , what OpenSSL does seems to be correct to me, and I don't find any equivalent for this part in this library.

Is this something which should be added, or am I missing it somewhere?

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

1 participant