Méthode | Description | |
---|---|---|
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 ) : |
Sender is anonymous and keyless. Receiver is static and authenticated.
|
|
ToPrivateKeyFromBlob ( Array privateBlob ) : CngKey | ||
ToPublicKeyFromBlob ( Array publicBlob ) : CngKey |
public static CreateNewDhmKey ( string name = null ) : CngKey | ||
name | string | |
Résultat | CngKey |
public static CreateNewDsaKey ( string name = null ) : CngKey | ||
name | string | |
Résultat | CngKey |
public static GetPrivateBlob ( CngKey key ) : byte[] | ||
key | CngKey | |
Résultat | byte[] |
public static GetPublicBlob ( CngKey key ) : byte[] | ||
key | CngKey | |
Résultat | byte[] |
public static GetSharedDhmSecret ( CngKey privateDhmKey, CngKey publicDhmKey, Array contextAppend = null, Array contextPrepend = null ) : byte[] | ||
privateDhmKey | CngKey | |
publicDhmKey | CngKey | |
contextAppend | Array | |
contextPrepend | Array | |
Résultat | byte[] |
public static GetSharedEphemeralDhmSecret ( CngKey receiverDhmPublicKey, Array contextAppend = null, Array contextPrepend = null ) : |
||
receiverDhmPublicKey | CngKey | |
contextAppend | Array | |
contextPrepend | Array | |
Résultat |
public static ToPrivateKeyFromBlob ( Array privateBlob ) : CngKey | ||
privateBlob | Array | |
Résultat | CngKey |
public static ToPublicKeyFromBlob ( Array publicBlob ) : CngKey | ||
publicBlob | Array | |
Résultat | CngKey |