Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Internal.Cryptography.CngCommon Class Reference

Static Public Member Functions

static byte[] HashData (byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
 
static bool TryHashData (ReadOnlySpan< byte > source, Span< byte > destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
 
static byte[] HashData (Stream data, HashAlgorithmName hashAlgorithm)
 
static unsafe byte[] SignHash (this SafeNCryptKeyHandle keyHandle, ReadOnlySpan< byte > hash, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void *pPaddingInfo, int estimatedSize)
 
static unsafe bool TrySignHash (this SafeNCryptKeyHandle keyHandle, ReadOnlySpan< byte > hash, Span< byte > signature, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void *pPaddingInfo, out int bytesWritten)
 
static unsafe bool VerifyHash (this SafeNCryptKeyHandle keyHandle, ReadOnlySpan< byte > hash, ReadOnlySpan< byte > signature, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void *pPaddingInfo)
 
static byte[] HashData (byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm)
 
static bool TryHashData (ReadOnlySpan< byte > source, Span< byte > destination, HashAlgorithmName hashAlgorithm, out int bytesWritten)
 
static byte[] HashData (Stream data, HashAlgorithmName hashAlgorithm)
 
static unsafe byte[] SignHash (this SafeNCryptKeyHandle keyHandle, ReadOnlySpan< byte > hash, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void *pPaddingInfo, int estimatedSize)
 
static unsafe bool TrySignHash (this SafeNCryptKeyHandle keyHandle, ReadOnlySpan< byte > hash, Span< byte > signature, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void *pPaddingInfo, out int bytesWritten)
 
static unsafe bool VerifyHash (this SafeNCryptKeyHandle keyHandle, ReadOnlySpan< byte > hash, ReadOnlySpan< byte > signature, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void *pPaddingInfo)
 

Detailed Description

Definition at line 8 of file CngCommon.cs.


The documentation for this class was generated from the following files: