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

EnvelopedCms.Decode throws an exception #25

Closed
AlexeyAKat opened this issue May 26, 2020 · 1 comment
Closed

EnvelopedCms.Decode throws an exception #25

AlexeyAKat opened this issue May 26, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@AlexeyAKat
Copy link

The following test code works on Windows and throws an exception on linux:

var envelopedCms = new EnvelopedCms();

// throws an exception
envelopedCms.Decode(msg);

Exception stack trace:

Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: Unknown error (0x0)
   at Internal.Cryptography.Pal.Windows.HelpersWindows.GetMsgParamAsMemory(SafeCryptMsgHandle hCryptMsg, CryptMsgParamType paramType, Int32 index)
   at Internal.Cryptography.Pal.Windows.DecryptorPalWindows.Decode(Byte[] encodedMessage, Int32& version, ContentInfo& contentInfo, AlgorithmIdentifier& contentEncryptionAlgorithm, X509Certificate2Collection& originatorCerts, CryptographicAttributeObjectCollection& unprotectedAttributes)
   at Internal.Cryptography.Pal.Windows.PkcsPalWindows.Decode(Byte[] encodedMessage, Int32& version, ContentInfo& contentInfo, AlgorithmIdentifier& contentEncryptionAlgorithm, X509Certificate2Collection& originatorCerts, CryptographicAttributeObjectCollection& unprotectedAttributes)
   at System.Security.Cryptography.Pkcs.EnvelopedCms.Decode(Byte[] encodedMessage)

OS: Ubuntu 18.04.4 LTS, .net core 3.1 (SDK 3.1.202, runtime 3.1.4), Crypto-Pro CSP 5.0.11732 KC1, instruction Linux.md was used, corefx ver.3.1.1.241 (4.7.0-dev.20175.1) from link .

@tolyanich tolyanich self-assigned this Jun 9, 2020
@tolyanich tolyanich added the bug Something isn't working label Jun 9, 2020
@Fasjeit
Copy link
Collaborator

Fasjeit commented Jun 2, 2022

Основная работа по поддержке CMS шифрования тут:
#56

@Fasjeit Fasjeit closed this as completed Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants