C# Класс SecurityDriven.Inferno.Extensions.CngKeyExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
CreateNewDhmKey ( string name = null ) : CngKey
CreateNewDsaKey ( string name = null ) : CngKey
GetPrivateBlob ( CngKey key ) : byte[]
GetPublicBlob ( CngKey key ) : byte[]
GetSharedDhmSecret ( CngKey privateDhmKey, CngKey publicDhmKey, Array contextAppend = null, Array contextPrepend = null ) : byte[]

Both parties are static and authenticated.

GetSharedEphemeralDhmSecret ( CngKey receiverDhmPublicKey, Array contextAppend = null, Array contextPrepend = null ) : SharedEphemeralBundle

Sender is anonymous and keyless. Receiver is static and authenticated.

ToPrivateKeyFromBlob ( Array privateBlob ) : CngKey
ToPublicKeyFromBlob ( Array publicBlob ) : CngKey

Описание методов

CreateNewDhmKey() публичный статический Метод

public static CreateNewDhmKey ( string name = null ) : CngKey
name string
Результат CngKey

CreateNewDsaKey() публичный статический Метод

public static CreateNewDsaKey ( string name = null ) : CngKey
name string
Результат CngKey

GetPrivateBlob() публичный статический Метод

public static GetPrivateBlob ( CngKey key ) : byte[]
key CngKey
Результат byte[]

GetPublicBlob() публичный статический Метод

public static GetPublicBlob ( CngKey key ) : byte[]
key CngKey
Результат byte[]

GetSharedDhmSecret() публичный статический Метод

Both parties are static and authenticated.
public static GetSharedDhmSecret ( CngKey privateDhmKey, CngKey publicDhmKey, Array contextAppend = null, Array contextPrepend = null ) : byte[]
privateDhmKey CngKey
publicDhmKey CngKey
contextAppend Array
contextPrepend Array
Результат byte[]

GetSharedEphemeralDhmSecret() публичный статический Метод

Sender is anonymous and keyless. Receiver is static and authenticated.
public static GetSharedEphemeralDhmSecret ( CngKey receiverDhmPublicKey, Array contextAppend = null, Array contextPrepend = null ) : SharedEphemeralBundle
receiverDhmPublicKey CngKey
contextAppend Array
contextPrepend Array
Результат SharedEphemeralBundle

ToPrivateKeyFromBlob() публичный статический Метод

public static ToPrivateKeyFromBlob ( Array privateBlob ) : CngKey
privateBlob Array
Результат CngKey

ToPublicKeyFromBlob() публичный статический Метод

public static ToPublicKeyFromBlob ( Array publicBlob ) : CngKey
publicBlob Array
Результат CngKey