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

API Request: Encryption & Decryption for CMS #161

Open
ylorn opened this issue Feb 8, 2024 · 1 comment
Open

API Request: Encryption & Decryption for CMS #161

ylorn opened this issue Feb 8, 2024 · 1 comment

Comments

@ylorn
Copy link

ylorn commented Feb 8, 2024

Hi, thanks for making handling certificates easy in Swift with this package!

I am just wondering if it is reasonable to extend the capability of CMS to enable the encryption and decryption capabilities to achieve the similar functionalities to their counterparts in OpenSSL:

CMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,
                             const EVP_CIPHER *cipher, unsigned int flags);

int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,
                BIO *dcont, BIO *out, unsigned int flags);

Thanks again.

@Lukasa
Copy link
Collaborator

Lukasa commented Feb 27, 2024

Hi @ylorn! Yes, I'd welcome a PR to add these capabilities. However, I don't think we have the bandwidth to tackle this ourselves at the moment, so we will need a contributor to step up.

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

2 participants