42 lines
1.9 KiB
C#
42 lines
1.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Defines methods that allow an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> class to enumerate key container information, and import and export Microsoft Cryptographic API (CAPI)-compatible key blobs.</summary>
|
|
// Token: 0x02000424 RID: 1060
|
|
[Token(Token = "0x2000424")]
|
|
[ComVisible(true)]
|
|
public interface ICspAsymmetricAlgorithm
|
|
{
|
|
/// <summary>Exports a blob that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.</summary>
|
|
/// <param name="includePrivateParameters">
|
|
/// <see langword="true" /> to include the private key; otherwise, <see langword="false" />.</param>
|
|
/// <returns>A byte array that contains the key information associated with an <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> object.</returns>
|
|
// Token: 0x060023D6 RID: 9174
|
|
[Token(Token = "0x60023D6")]
|
|
[Address(Slot = "0")]
|
|
byte[] ExportCspBlob(bool includePrivateParameters);
|
|
|
|
/// <summary>Imports a blob that represents asymmetric key information.</summary>
|
|
/// <param name="rawData">A byte array that represents an asymmetric key blob.</param>
|
|
// Token: 0x060023D7 RID: 9175
|
|
[Token(Token = "0x60023D7")]
|
|
[Address(Slot = "1")]
|
|
void ImportCspBlob(byte[] rawData);
|
|
|
|
/// <summary>Gets a <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</summary>
|
|
/// <returns>A <see cref="T:System.Security.Cryptography.CspKeyContainerInfo" /> object that describes additional information about a cryptographic key pair.</returns>
|
|
// Token: 0x170004FD RID: 1277
|
|
// (get) Token: 0x060023D8 RID: 9176
|
|
[Token(Token = "0x170004FD")]
|
|
CspKeyContainerInfo CspKeyContainerInfo
|
|
{
|
|
[Token(Token = "0x60023D8")]
|
|
[Address(Slot = "2")]
|
|
get;
|
|
}
|
|
}
|
|
}
|