Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CryptoThrowHelper.cs
Go to the documentation of this file.
1
using
System.Security.Cryptography
;
2
3
namespace
Internal.Cryptography
;
4
5
internal
static
class
CryptoThrowHelper
6
{
7
private
sealed
class
WindowsCryptographicException :
CryptographicException
8
{
9
public
WindowsCryptographicException
(
int
hr,
string
message)
10
: base(message)
11
{
12
base.HResult = hr;
13
}
14
}
15
16
public
static
CryptographicException
ToCryptographicException
(
this
int
hr)
17
{
18
string
message = global::Interop.Kernel32.GetMessage(hr);
19
if
((hr & 0x80000000u) != 2147483648u)
20
{
21
hr = (hr & 0xFFFF) | -2147024896;
22
}
23
return
new
WindowsCryptographicException
(hr, message);
24
}
25
}
Internal.Cryptography.CryptoThrowHelper.WindowsCryptographicException.WindowsCryptographicException
WindowsCryptographicException(int hr, string message)
Definition
CryptoThrowHelper.cs:9
Internal.Cryptography.CryptoThrowHelper.WindowsCryptographicException
Definition
CryptoThrowHelper.cs:8
Internal.Cryptography.CryptoThrowHelper.ToCryptographicException
static CryptographicException ToCryptographicException(this int hr)
Definition
CryptoThrowHelper.cs:16
System.Security.Cryptography.CryptographicException
Definition
CryptographicException.cs:9
Internal.Cryptography
Definition
AesBCryptModes.cs:5
System.Security.Cryptography
Definition
CryptoPool.cs:3
source
System.Security.Cryptography.Cng
Internal.Cryptography
CryptoThrowHelper.cs
Generated by
1.10.0