語言

RSA.Create 方法

定義

允許實例化特定的實 RSA 作。

多載

名稱 Description
Create()

建立演算法預設實作 RSA 的實例。

Create(Int32)

建立一個新的臨時 RSA 金鑰,且其鍵大小相同。

Create(RSAParameters)

建立一個新的臨時 RSA 金鑰,並包含指定的 RSA 金鑰參數。

Create(String)
已淘汰.

建立指定實作 RSA的實例。

Create()

來源:
RSA.Create.OpenSsl.cs
來源:
RSA.Create.OpenSsl.cs
來源:
RSA.Create.OpenSsl.cs
來源:
RSA.Create.OpenSsl.cs
來源:
RSA.Create.OpenSsl.cs

建立演算法預設實作 RSA 的實例。

public:
 static System::Security::Cryptography::RSA ^ Create();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create();
public static System.Security.Cryptography.RSA Create();
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : unit -> System.Security.Cryptography.RSA
static member Create : unit -> System.Security.Cryptography.RSA
Public Shared Function Create () As RSA

傳回

RSA

預設實作 RSA的新實例。

屬性

另請參閱

適用於

Create(Int32)

來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs

建立一個新的臨時 RSA 金鑰,且其鍵大小相同。

public:
 static System::Security::Cryptography::RSA ^ Create(int keySizeInBits);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create(int keySizeInBits);
public static System.Security.Cryptography.RSA Create(int keySizeInBits);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : int -> System.Security.Cryptography.RSA
static member Create : int -> System.Security.Cryptography.RSA
Public Shared Function Create (keySizeInBits As Integer) As RSA

參數

keySizeInBits
Int32

鑰匙大小,分成小塊。

傳回

RSA

一組新的臨時 RSA 金鑰,且其鍵大小相同。

屬性

例外狀況

keySizeInBits 預設實作不支援。

適用於

Create(RSAParameters)

來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs

建立一個新的臨時 RSA 金鑰,並包含指定的 RSA 金鑰參數。

public:
 static System::Security::Cryptography::RSA ^ Create(System::Security::Cryptography::RSAParameters parameters);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RSA Create(System.Security.Cryptography.RSAParameters parameters);
public static System.Security.Cryptography.RSA Create(System.Security.Cryptography.RSAParameters parameters);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSA
static member Create : System.Security.Cryptography.RSAParameters -> System.Security.Cryptography.RSA
Public Shared Function Create (parameters As RSAParameters) As RSA

參數

parameters
RSAParameters

演算法的 RSA 參數。

傳回

RSA

一個新的臨時 RSA 金鑰。

屬性

例外狀況

parameters 不代表有效的 RSA 金鑰。

另請參閱

適用於

Create(String)

來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs
來源:
RSA.cs

警告

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

建立指定實作 RSA的實例。

public:
 static System::Security::Cryptography::RSA ^ Create(System::String ^ algName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.RSA? Create(string algName);
public static System.Security.Cryptography.RSA? Create(string algName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.RSA? Create(string algName);
public static System.Security.Cryptography.RSA Create(string algName);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.RSA
static member Create : string -> System.Security.Cryptography.RSA
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.RSA
Public Shared Function Create (algName As String) As RSA

參數

algName
String

實作 RSA 名稱為 to use。

傳回

RSA

指定實作 RSA的新實例。

屬性

另請參閱

適用於