C# Класс StopGuessing.EncryptionPrimitives.EcEncryptedMessageAesCbcHmacSha256

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Описание методов

Decrypt() публичный Метод

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.
Результат byte[]

Decrypt() публичный Метод

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.
Результат byte[]

Decrypt() публичный Метод

public Decrypt ( byte ecPrivateKey ) : byte[]
ecPrivateKey byte
Результат byte[]

EcEncryptedMessageAesCbcHmacSha256() публичный Метод

public EcEncryptedMessageAesCbcHmacSha256 ( ) : System
Результат System

EcEncryptedMessageAesCbcHmacSha256() публичный Метод

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.
Результат System

EcEncryptedMessageAesCbcHmacSha256() публичный Метод

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.
Результат System