C# Class StopGuessing.EncryptionPrimitives.EcEncryptedMessageAesCbcHmacSha256

Afficher le fichier Open project: Microsoft/StopGuessing Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Decrypt ( System.Security.Cryptography.ECDiffieHellmanCng recipientsPrivateEcKey ) : byte[]

Decrypt the message by providing the recipient's private EC key.

Decrypt ( Encryption recipientsPrivateEcKey ) : byte[]

Decrypt the message by providing the recipient's private EC key.

Decrypt ( byte ecPrivateKey ) : byte[]
EcEncryptedMessageAesCbcHmacSha256 ( ) : System
EcEncryptedMessageAesCbcHmacSha256 ( System.Security.Cryptography.ECDiffieHellmanPublicKey recipientsEcPublicKey, byte plaintextMessageAsByteArray ) : System

Creates an encrypted message

EcEncryptedMessageAesCbcHmacSha256 ( byte plaintextMessageAsByteArray, Encryption recipientsPublicKey = null ) : System

Creates an encrypted message

Method Details

Decrypt() public méthode

Decrypt the message by providing the recipient's private EC key.
public Decrypt ( System.Security.Cryptography.ECDiffieHellmanCng recipientsPrivateEcKey ) : byte[]
recipientsPrivateEcKey System.Security.Cryptography.ECDiffieHellmanCng The private EC key matching the public key provided for encryption.
Résultat byte[]

Decrypt() public méthode

Decrypt the message by providing the recipient's private EC key.
public Decrypt ( Encryption recipientsPrivateEcKey ) : byte[]
recipientsPrivateEcKey Encryption The private EC key matching the public key provided for encryption.
Résultat byte[]

Decrypt() public méthode

public Decrypt ( byte ecPrivateKey ) : byte[]
ecPrivateKey byte
Résultat byte[]

EcEncryptedMessageAesCbcHmacSha256() public méthode

public EcEncryptedMessageAesCbcHmacSha256 ( ) : System
Résultat System

EcEncryptedMessageAesCbcHmacSha256() public méthode

Creates an encrypted message
public EcEncryptedMessageAesCbcHmacSha256 ( System.Security.Cryptography.ECDiffieHellmanPublicKey recipientsEcPublicKey, byte plaintextMessageAsByteArray ) : System
recipientsEcPublicKey System.Security.Cryptography.ECDiffieHellmanPublicKey The public portion of the message recpient's EC key.
plaintextMessageAsByteArray byte The message to encrypt.
Résultat System

EcEncryptedMessageAesCbcHmacSha256() public méthode

Creates an encrypted message
public EcEncryptedMessageAesCbcHmacSha256 ( byte plaintextMessageAsByteArray, Encryption recipientsPublicKey = null ) : System
plaintextMessageAsByteArray byte The message to encrypt.
recipientsPublicKey Encryption The public portion of the message recpient's assymetric key.
Résultat System