Méthode | Description | |
---|---|---|
Decrypt ( System.Security.Cryptography.ECDiffieHellmanCng privateKey, System.Security.Cryptography.ECDiffieHellmanPublicKey publicKey, byte nonce, byte encryptedData ) : byte[] |
Decrypts the provided data.
|
|
Encrypt ( System.Security.Cryptography.ECDiffieHellmanCng privateKey, System.Security.Cryptography.ECDiffieHellmanPublicKey publicKey, byte nonce, byte data ) : byte[] |
Encrypts the provided data.
|
|
ExportKey ( string Path, System.Security.Cryptography.CngKey PrivateKey ) : void |
Exports a private key.
|
|
ExportKey ( string Path, System.Security.Cryptography.ECDiffieHellmanPublicKey Key ) : void | ||
ExportKey ( string Path, byte Key ) : void | ||
ImportKey ( string Path ) : byte[] |
Imports a key from a specified path.
|
Méthode | Description | |
---|---|---|
DeriveKeyAndIv ( System.Security.Cryptography.ECDiffieHellmanCng privateKey, System.Security.Cryptography.ECDiffieHellmanPublicKey publicKey, byte nonce ) : |
public static Decrypt ( System.Security.Cryptography.ECDiffieHellmanCng privateKey, System.Security.Cryptography.ECDiffieHellmanPublicKey publicKey, byte nonce, byte encryptedData ) : byte[] | ||
privateKey | System.Security.Cryptography.ECDiffieHellmanCng | The private key used for decryption. |
publicKey | System.Security.Cryptography.ECDiffieHellmanPublicKey | The public key used for decryption. |
nonce | byte | The nonce used for decryption. |
encryptedData | byte | The data to decrypt. |
Résultat | byte[] |
public static Encrypt ( System.Security.Cryptography.ECDiffieHellmanCng privateKey, System.Security.Cryptography.ECDiffieHellmanPublicKey publicKey, byte nonce, byte data ) : byte[] | ||
privateKey | System.Security.Cryptography.ECDiffieHellmanCng | The private key used for encryption. |
publicKey | System.Security.Cryptography.ECDiffieHellmanPublicKey | The public key used for encryption. |
nonce | byte | The nonce used for encryption. |
data | byte | The data to encrypt. |
Résultat | byte[] |
public static ExportKey ( string Path, System.Security.Cryptography.CngKey PrivateKey ) : void | ||
Path | string | The path to export to. |
PrivateKey | System.Security.Cryptography.CngKey | The key to export. |
Résultat | void |
public static ExportKey ( string Path, System.Security.Cryptography.ECDiffieHellmanPublicKey Key ) : void | ||
Path | string | |
Key | System.Security.Cryptography.ECDiffieHellmanPublicKey | |
Résultat | void |
public static ExportKey ( string Path, byte Key ) : void | ||
Path | string | |
Key | byte | |
Résultat | void |
public static ImportKey ( string Path ) : byte[] | ||
Path | string | The path of the key. |
Résultat | byte[] |