Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Security.Cryptography.CngKeyLite Class Reference

Static Package Functions

static unsafe SafeNCryptKeyHandle ImportKeyBlob (string blobType, ReadOnlySpan< byte > keyBlob, bool encrypted=false, ReadOnlySpan< char > password=default(ReadOnlySpan< char >))
 
static SafeNCryptKeyHandle ImportKeyBlob (string blobType, byte[] keyBlob, string curveName)
 
static byte[] ExportKeyBlob (SafeNCryptKeyHandle keyHandle, string blobType)
 
static byte[] ExportPkcs8KeyBlob (SafeNCryptKeyHandle keyHandle, ReadOnlySpan< char > password, int kdfCount)
 
static bool TryExportPkcs8KeyBlob (SafeNCryptKeyHandle keyHandle, ReadOnlySpan< char > password, int kdfCount, Span< byte > destination, out int bytesWritten)
 
static unsafe bool ExportPkcs8KeyBlob (bool allocate, SafeNCryptKeyHandle keyHandle, ReadOnlySpan< char > password, int kdfCount, Span< byte > destination, out int bytesWritten, out byte[] allocated)
 
static SafeNCryptKeyHandle GenerateNewExportableKey (string algorithm, int keySize)
 
static SafeNCryptKeyHandle GenerateNewExportableKey (string algorithm, string curveName)
 
static SafeNCryptKeyHandle GenerateNewExportableKey (string algorithm, ref ECCurve explicitCurve)
 
static int GetKeyLength (SafeNCryptKeyHandle keyHandle)
 
static unsafe string GetPropertyAsString (SafeNCryptHandle ncryptHandle, string propertyName, CngPropertyOptions options)
 
static string GetCurveName (SafeNCryptHandle ncryptHandle)
 
static void SetCurveName (SafeNCryptHandle keyHandle, string curveName)
 

Static Private Member Functions

static unsafe void SetExportable (SafeNCryptKeyHandle keyHandle)
 
static unsafe void SetKeyLength (SafeNCryptKeyHandle keyHandle, int keySize)
 
static SafeNCryptProviderHandle OpenNCryptProvider (string providerName)
 
static unsafe byte[] GetProperty (SafeNCryptHandle ncryptHandle, string propertyName, CngPropertyOptions options)
 
static unsafe void SetProperty (SafeNCryptHandle ncryptHandle, string propertyName, byte[] value)
 

Static Private Attributes

static readonly SafeNCryptProviderHandle s_microsoftSoftwareProviderHandle = OpenNCryptProvider("Microsoft Software Key Storage Provider")
 
static readonly byte[] s_pkcs12TripleDesOidBytes = Encoding.ASCII.GetBytes("1.2.840.113549.1.12.1.3\0")
 

Detailed Description

Definition at line 8 of file CngKeyLite.cs.


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