Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Internal.Cryptography.BasicSymmetricCipherNCrypt Class Referencesealed

Public Member Functions

 BasicSymmetricCipherNCrypt (Func< CngKey > cngKeyFactory, CipherMode cipherMode, int blockSizeInBytes, byte[] iv, bool encrypting, int paddingSize)
 
unsafe override int Transform (ReadOnlySpan< byte > input, Span< byte > output)
 
override int TransformFinal (ReadOnlySpan< byte > input, Span< byte > output)
 
void Dispose ()
 

Protected Member Functions

override void Dispose (bool disposing)
 

Properties

int BlockSizeInBytes [get, private set]
 
int PaddingSizeInBytes [get, private set]
 
byte[] IV [get, private set]
 

Private Member Functions

void Reset ()
 

Private Attributes

CngKey _cngKey
 
readonly bool _encrypting
 

Static Private Attributes

static readonly CngProperty s_ECBMode = new CngProperty("Chaining Mode", Encoding.Unicode.GetBytes("ChainingModeECB\0"), CngPropertyOptions.None)
 
static readonly CngProperty s_CBCMode = new CngProperty("Chaining Mode", Encoding.Unicode.GetBytes("ChainingModeCBC\0"), CngPropertyOptions.None)
 
static readonly CngProperty s_CFBMode = new CngProperty("Chaining Mode", Encoding.Unicode.GetBytes("ChainingModeCFB\0"), CngPropertyOptions.None)
 

Detailed Description

Definition at line 8 of file BasicSymmetricCipherNCrypt.cs.


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