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

Classes

struct  Pkcs8Response
 

Static Package Functions

static bool IsPlatformScheme (PbeParameters pbeParameters)
 
static byte[] ExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters)
 
static bool TryExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters, Span< byte > destination, out int bytesWritten)
 
static byte[] ExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< char > password, PbeParameters pbeParameters)
 
static bool TryExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< char > password, PbeParameters pbeParameters, Span< byte > destination, out int bytesWritten)
 
static Pkcs8Response ImportPkcs8PrivateKey (ReadOnlySpan< byte > source, out int bytesRead)
 
static unsafe Pkcs8Response ImportEncryptedPkcs8PrivateKey (ReadOnlySpan< byte > passwordBytes, ReadOnlySpan< byte > source, out int bytesRead)
 
static unsafe Pkcs8Response ImportEncryptedPkcs8PrivateKey (ReadOnlySpan< char > password, ReadOnlySpan< byte > source, out int bytesRead)
 
static bool IsPlatformScheme (PbeParameters pbeParameters)
 
static byte[] ExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters)
 
static bool TryExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters, Span< byte > destination, out int bytesWritten)
 
static byte[] ExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< char > password, PbeParameters pbeParameters)
 
static bool TryExportEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< char > password, PbeParameters pbeParameters, Span< byte > destination, out int bytesWritten)
 
static Pkcs8Response ImportPkcs8PrivateKey (ReadOnlySpan< byte > source, out int bytesRead)
 
static unsafe Pkcs8Response ImportEncryptedPkcs8PrivateKey (ReadOnlySpan< byte > passwordBytes, ReadOnlySpan< byte > source, out int bytesRead)
 
static unsafe Pkcs8Response ImportEncryptedPkcs8PrivateKey (ReadOnlySpan< char > password, ReadOnlySpan< byte > source, out int bytesRead)
 

Static Private Member Functions

static Pkcs8Response ImportPkcs8 (ReadOnlySpan< byte > keyBlob)
 
static Pkcs8Response ImportPkcs8 (ReadOnlySpan< byte > keyBlob, ReadOnlySpan< char > password)
 
static Pkcs8Response ImportPkcs8 (AsnWriter pkcs8Writer)
 
static AsnWriter RewriteEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters)
 
static AsnWriter RewriteEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< char > password, PbeParameters pbeParameters)
 
static unsafe AsnWriter RewritePkcs8ECPrivateKeyWithZeroPublicKey (ReadOnlySpan< byte > source)
 
static void FillRandomAsciiString (Span< char > destination)
 
static Pkcs8Response ImportPkcs8 (ReadOnlySpan< byte > keyBlob)
 
static Pkcs8Response ImportPkcs8 (ReadOnlySpan< byte > keyBlob, ReadOnlySpan< char > password)
 
static Pkcs8Response ImportPkcs8 (AsnWriter pkcs8Writer)
 
static AsnWriter RewriteEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< byte > passwordBytes, PbeParameters pbeParameters)
 
static AsnWriter RewriteEncryptedPkcs8PrivateKey (AsymmetricAlgorithm key, ReadOnlySpan< char > password, PbeParameters pbeParameters)
 
static unsafe AsnWriter RewritePkcs8ECPrivateKeyWithZeroPublicKey (ReadOnlySpan< byte > source)
 
static void FillRandomAsciiString (Span< char > destination)
 

Static Private Attributes

static readonly PbeParameters s_platformParameters = new PbeParameters(PbeEncryptionAlgorithm.TripleDes3KeyPkcs12, HashAlgorithmName.SHA1, 1)
 

Detailed Description

Definition at line 9 of file CngPkcs8.cs.


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