C# Class StopGuessing.EncryptionPrimitives.EcEncryptedMessageAesCbcHmacSha256

ファイルを表示 Open project: Microsoft/StopGuessing Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method 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 method

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.
return byte[]

Decrypt() public method

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.
return byte[]

Decrypt() public method

public Decrypt ( byte ecPrivateKey ) : byte[]
ecPrivateKey byte
return byte[]

EcEncryptedMessageAesCbcHmacSha256() public method

public EcEncryptedMessageAesCbcHmacSha256 ( ) : System
return System

EcEncryptedMessageAesCbcHmacSha256() public method

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.
return System

EcEncryptedMessageAesCbcHmacSha256() public method

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.
return System