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.RSAImplementation.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
364
of file
RSAImplementation.cs
.
365
{
366
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
));
367
if
(
errorCode
== global::Interop.NCrypt.ErrorCode.ERROR_SUCCESS &&
bytesNeeded
>
output
.Length)
368
{
369
errorCode
= global::Interop.NCrypt.ErrorCode.NTE_BUFFER_TOO_SMALL;
370
}
371
return
errorCode
;
372
}
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
RSAImplementation
RSACng
Generated by
1.10.0