Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
EncryptOrDecrypt()
[3/3]
static unsafe global.Interop.NCrypt.ErrorCode System.Security.Cryptography.RSACng.EncryptOrDecrypt
(
SafeNCryptKeyHandle
key
,
ReadOnlySpan
< byte >
input
,
Span
< byte >
output
,
global::Interop::NCrypt::AsymmetricPaddingMode
paddingMode
,
void
*
paddingInfo
,
bool
encrypt
,
out
int
bytesNeeded
)
inline
static
private
Definition at line
365
of file
RSACng.cs
.
366
{
367
global::Interop.NCrypt.ErrorCode
errorCode
= (
encrypt
? global::Interop.NCrypt.NCryptEncrypt(
key
,
input
,
input
.Length,
paddingInfo
,
output
,
output
.Length,
out
bytesNeeded
,
paddingMode
) : global::Interop.NCrypt.NCryptDecrypt(
key
,
input
,
input
.Length,
paddingInfo
,
output
,
output
.Length,
out
bytesNeeded
,
paddingMode
));
368
if
(
errorCode
== global::Interop.NCrypt.ErrorCode.ERROR_SUCCESS &&
bytesNeeded
>
output
.Length)
369
{
370
errorCode
= global::Interop.NCrypt.ErrorCode.NTE_BUFFER_TOO_SMALL;
371
}
372
return
errorCode
;
373
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.ExceptionArgument.key
@ key
System.ExceptionArgument.input
@ input
References
System.input
, and
System.key
.
System
Security
Cryptography
RSACng
Generated by
1.10.0