14 references to ToCryptographicException
System.Security.Cryptography.Pkcs (14)
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 (4)
142
return errorCode.
ToCryptographicException
();
154
return errorCode.
ToCryptographicException
();
227
return ErrorCode.CRYPT_E_NOT_FOUND.
ToCryptographicException
();
265
return errorCode.
ToCryptographicException
();
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
();