C# Класс TSystems.RELOAD.Topology.Signature

This class represents the Signature struct. See RELOAD base -13 p. 52
Показать файл Открыть проект

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

Метод Описание
Dump ( BinaryWriter writer ) : UInt32
FromReader ( BinaryReader reader, long reload_msg_size ) : Signature
Signature ( ReloadConfig config ) : System

Use this contructor to obtain signature from bytes.

Signature ( ResourceId resId, UInt32 kind, System.UInt64 storageTime, StoredDataValue value, SignerIdentity signerIdentity, ReloadConfig config ) : System

Each StoredData element is individually signed. However, the signature also must be self-contained and cover the Kind-ID and Resource-ID even though they are not present in the StoredData structure. The input to the signature algorithm is: resource_id || kind || storage_time || StoredDataValue || SignerIdentity

Signature ( UInt32 overlay, string transactionId, byte messageContents, SignerIdentity signerIdentity, ReloadConfig config ) : System
Signature ( UInt32 overlay, string transactionId, string messageContents, SignerIdentity signerIdentity, ReloadConfig config ) : System

For signatures over messages the input to the signature is computed over the overlay and transaction_id come from the forwarding header see RELOAD base -13 p.53

Приватные методы

Метод Описание
GetKeyFile ( ) : byte[]

Obtains the private key file.

Sign ( byte bSignInput ) : byte[]

Creates the signature using RSA over a SHA256. Uses the private key from file.

Sign ( string signaturInput ) : byte[]

Creates the signature using RSA over a SHA256. Uses the private key from file.

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

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

public Dump ( BinaryWriter writer ) : UInt32
writer System.IO.BinaryWriter
Результат System.UInt32

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

public FromReader ( BinaryReader reader, long reload_msg_size ) : Signature
reader System.IO.BinaryReader
reload_msg_size long
Результат Signature

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

Use this contructor to obtain signature from bytes.
public Signature ( ReloadConfig config ) : System
config ReloadConfig The stack configuration
Результат System

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

Each StoredData element is individually signed. However, the signature also must be self-contained and cover the Kind-ID and Resource-ID even though they are not present in the StoredData structure. The input to the signature algorithm is: resource_id || kind || storage_time || StoredDataValue || SignerIdentity
public Signature ( ResourceId resId, UInt32 kind, System.UInt64 storageTime, StoredDataValue value, SignerIdentity signerIdentity, ReloadConfig config ) : System
resId TSystems.RELOAD.Utils.ResourceId
kind System.UInt32
storageTime System.UInt64
value TSystems.RELOAD.Storage.StoredDataValue
signerIdentity SignerIdentity
config ReloadConfig
Результат System

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

public Signature ( UInt32 overlay, string transactionId, byte messageContents, SignerIdentity signerIdentity, ReloadConfig config ) : System
overlay System.UInt32
transactionId string
messageContents byte
signerIdentity SignerIdentity
config ReloadConfig
Результат System

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

For signatures over messages the input to the signature is computed over the overlay and transaction_id come from the forwarding header see RELOAD base -13 p.53
public Signature ( UInt32 overlay, string transactionId, string messageContents, SignerIdentity signerIdentity, ReloadConfig config ) : System
overlay System.UInt32 overlay
transactionId string
messageContents string Message Contents
signerIdentity SignerIdentity SignerIdentity
config ReloadConfig
Результат System