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

Static Public Member Functions

static bool UsesIv (this CipherMode cipherMode)
 
static byte[] GetCipherIv (this CipherMode cipherMode, byte[] iv)
 
static byte[] FixupKeyParity (this byte[] key)
 
static byte[] CloneByteArray (this byte[] src)
 
static int GetPaddingSize (this SymmetricAlgorithm algorithm, CipherMode mode, int feedbackSizeInBits)
 
static bool UsesIv (this CipherMode cipherMode)
 
static byte[] GetCipherIv (this CipherMode cipherMode, byte[] iv)
 
static byte[] MapZeroLengthArrayToNonNullPointer (this byte[] src)
 
static SafeNCryptProviderHandle OpenStorageProvider (this CngProvider provider)
 
static unsafe byte[] GetProperty (this SafeNCryptHandle ncryptHandle, string propertyName, CngPropertyOptions options)
 
static unsafe string GetPropertyAsString (this SafeNCryptHandle ncryptHandle, string propertyName, CngPropertyOptions options)
 
static int GetPropertyAsDword (this SafeNCryptHandle ncryptHandle, string propertyName, CngPropertyOptions options)
 
static unsafe IntPtr GetPropertyAsIntPtr (this SafeNCryptHandle ncryptHandle, string propertyName, CngPropertyOptions options)
 
static unsafe void SetExportPolicy (this SafeNCryptKeyHandle keyHandle, CngExportPolicies exportPolicy)
 
static int BitSizeToByteSize (this int bits)
 
static byte[] GenerateRandom (int count)
 
static byte[] CloneByteArray (this byte[] src)
 
static int GetPaddingSize (this SymmetricAlgorithm algorithm, CipherMode mode, int feedbackSizeInBits)
 
static bool UsesIv (this CipherMode cipherMode)
 
static byte[] GetCipherIv (this CipherMode cipherMode, byte[] iv)
 
static byte[] TrimLargeIV (byte[] currentIV, int blockSizeInBits)
 
static byte[] CloneByteArray (this byte[] src)
 
static int GetPaddingSize (this SymmetricAlgorithm algorithm, CipherMode mode, int feedbackSizeInBits)
 
static byte[] CloneByteArray (this byte[] src)
 
static byte[] CloneByteArray (this byte[] src)
 
static byte[] CloneByteArray (this byte[] src)
 
static char[] ToHexArrayUpper (this byte[] bytes)
 
static string ToHexStringUpper (this byte[] bytes)
 
static byte[] DecodeHexString (this string hexString)
 
static bool ContentsEqual (this byte[] a1, byte[] a2)
 
static bool IsValidDay (this Calendar calendar, int year, int month, int day, int era)
 
static void ValidateDer (ReadOnlyMemory< byte > encodedValue)
 
static bool AreSamePublicECParameters (ECParameters aParameters, ECParameters bParameters)
 

Static Package Functions

static bool TryCopyToDestination (this ReadOnlySpan< byte > source, Span< byte > destination, out int bytesWritten)
 
static ReadOnlySpan< byte > AsSpanParameter (this byte[] array, string paramName)
 
static void AddRange< T > (this ICollection< T > coll, IEnumerable< T > newData)
 

Properties

static bool IsRC2Supported [get]
 
static bool IsDSASupported [get]
 

Static Private Member Functions

static bool IsValidMonth (this Calendar calendar, int year, int month, int era)
 
static bool IsValidYear (this Calendar calendar, int year, int era)
 

Detailed Description

Definition at line 8 of file Helpers.cs.


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