19 references to ErrorCode
System.Security.Cryptography.Pkcs (19)
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decode.cs (1)
46throw ErrorCode.CRYPT_E_INVALID_MSG_TYPE.ToCryptographicException();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.DecodeRecipients.cs (1)
63throw ErrorCode.E_NOTIMPL.ToCryptographicException();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (7)
140ErrorCode errorCode = (ErrorCode)(Marshal.GetLastPInvokeError()); 152ErrorCode errorCode = (ErrorCode)(Marshal.GetLastPInvokeError()); 227return ErrorCode.CRYPT_E_NOT_FOUND.ToCryptographicException(); 264ErrorCode errorCode = (ErrorCode)(Marshal.GetHRForLastWin32Error());
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (2)
22public static CryptographicException ToCryptographicException(this ErrorCode errorCode) 343if (lastError == (int)ErrorCode.CRYPT_E_ATTRIBUTES_MISSING)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (5)
52_ => throw ErrorCode.CRYPT_E_INVALID_MSG_TYPE.ToCryptographicException(), 65return ErrorCode.CRYPT_E_RECIPIENT_NOT_FOUND.ToCryptographicException(); 70return ErrorCode.CRYPT_E_INVALID_MSG_TYPE.ToCryptographicException(); 75return ErrorCode.CRYPT_E_INVALID_MSG_TYPE.ToCryptographicException(); 80return ErrorCode.CRYPT_E_INVALID_MSG_TYPE.ToCryptographicException();
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (3)
237throw ErrorCode.CRYPT_E_UNKNOWN_ALGO.ToCryptographicException(); 276throw ErrorCode.CRYPT_E_UNKNOWN_ALGO.ToCryptographicException(); 317throw ErrorCode.CRYPT_E_UNKNOWN_ALGO.ToCryptographicException();