Method | 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.
|
Method | 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. |
return | 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. |
return | 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. |
return | void |
public static ExportKey ( string Path, System.Security.Cryptography.ECDiffieHellmanPublicKey Key ) : void | ||
Path | string | |
Key | System.Security.Cryptography.ECDiffieHellmanPublicKey | |
return | void |
public static ExportKey ( string Path, byte Key ) : void | ||
Path | string | |
Key | byte | |
return | void |
public static ImportKey ( string Path ) : byte[] | ||
Path | string | The path of the key. |
return | byte[] |