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