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

Static Package Functions

static void ValidatePbeParameters (PbeParameters pbeParameters, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes)
 
static unsafe int Decrypt (in AlgorithmIdentifierAsn algorithmIdentifier, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static void InitiateEncryption (PbeParameters pbeParameters, out SymmetricAlgorithm cipher, out string hmacOid, out string encryptionAlgorithmOid, out bool isPkcs12)
 
static unsafe int Encrypt (ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes, SymmetricAlgorithm cipher, bool isPkcs12, AsnWriter source, PbeParameters pbeParameters, ReadOnlySpan< byte > salt, byte[] destination, Span< byte > ivDest)
 
static void WritePbeAlgorithmIdentifier (AsnWriter writer, bool isPkcs12, string encryptionAlgorithmOid, Span< byte > salt, int iterationCount, string hmacOid, Span< byte > iv)
 
static int NormalizeIterationCount (int iterationCount, int? iterationLimit=null)
 
static void ValidatePbeParameters (PbeParameters pbeParameters, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes)
 
static unsafe int Decrypt (in System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn algorithmIdentifier, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static void InitiateEncryption (PbeParameters pbeParameters, out SymmetricAlgorithm cipher, out string hmacOid, out string encryptionAlgorithmOid, out bool isPkcs12)
 
static unsafe int Encrypt (ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes, SymmetricAlgorithm cipher, bool isPkcs12, AsnWriter source, PbeParameters pbeParameters, ReadOnlySpan< byte > salt, byte[] destination, Span< byte > ivDest)
 
static void WritePbeAlgorithmIdentifier (AsnWriter writer, bool isPkcs12, string encryptionAlgorithmOid, Span< byte > salt, int iterationCount, string hmacOid, Span< byte > iv)
 
static int NormalizeIterationCount (int iterationCount, int? iterationLimit=null)
 

Static Private Member Functions

static CryptographicException AlgorithmKdfRequiresChars (string algId)
 
static unsafe int Pbes2Decrypt (ReadOnlyMemory< byte >? algorithmParameters, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static unsafe int Pbes2Decrypt (ReadOnlyMemory< byte >? algorithmParameters, ReadOnlySpan< byte > password, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static SymmetricAlgorithm OpenCipher (AlgorithmIdentifierAsn encryptionScheme, int? requestedKeyLength, ref Span< byte > iv)
 
static void ReadIvParameter (ReadOnlyMemory< byte >? encryptionSchemeParameters, int length, ref Span< byte > iv)
 
static unsafe Rfc2898DeriveBytes OpenPbkdf2 (ReadOnlySpan< byte > password, ReadOnlyMemory< byte >? parameters, out int? requestedKeyLength)
 
static int Pbes1Decrypt (ReadOnlyMemory< byte >? algorithmParameters, ReadOnlySpan< byte > password, IncrementalHash hasher, SymmetricAlgorithm cipher, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static int Pkcs12PbeDecrypt (AlgorithmIdentifierAsn algorithmIdentifier, ReadOnlySpan< char > password, HashAlgorithmName hashAlgorithm, SymmetricAlgorithm cipher, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static unsafe int Decrypt (SymmetricAlgorithm cipher, ReadOnlySpan< byte > key, ReadOnlySpan< byte > iv, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static void Pbkdf1 (IncrementalHash hasher, ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, int iterationCount, Span< byte > dk)
 
static RC2 CreateRC2 ()
 
static CryptographicException AlgorithmKdfRequiresChars (string algId)
 
static unsafe int Pbes2Decrypt (ReadOnlyMemory< byte >? algorithmParameters, ReadOnlySpan< char > password, ReadOnlySpan< byte > passwordBytes, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static unsafe int Pbes2Decrypt (ReadOnlyMemory< byte >? algorithmParameters, ReadOnlySpan< byte > password, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static SymmetricAlgorithm OpenCipher (System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn encryptionScheme, int? requestedKeyLength, ref Span< byte > iv)
 
static void ReadIvParameter (ReadOnlyMemory< byte >? encryptionSchemeParameters, int length, ref Span< byte > iv)
 
static unsafe Rfc2898DeriveBytes OpenPbkdf2 (ReadOnlySpan< byte > password, ReadOnlyMemory< byte >? parameters, out int? requestedKeyLength)
 
static int Pbes1Decrypt (ReadOnlyMemory< byte >? algorithmParameters, ReadOnlySpan< byte > password, IncrementalHash hasher, SymmetricAlgorithm cipher, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static int Pkcs12PbeDecrypt (System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn algorithmIdentifier, ReadOnlySpan< char > password, HashAlgorithmName hashAlgorithm, SymmetricAlgorithm cipher, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static unsafe int Decrypt (SymmetricAlgorithm cipher, ReadOnlySpan< byte > key, ReadOnlySpan< byte > iv, ReadOnlySpan< byte > encryptedData, Span< byte > destination)
 
static void Pbkdf1 (IncrementalHash hasher, ReadOnlySpan< byte > password, ReadOnlySpan< byte > salt, int iterationCount, Span< byte > dk)
 
static RC2 CreateRC2 ()
 

Detailed Description

Definition at line 10 of file PasswordBasedEncryption.cs.


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