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