libtc  20160415
Threshold Cryptography functions library
Functions | Variables
algorithms_node_sign.c File Reference
#include <gmp.h>
#include <mhash.h>
#include "mathutils.h"
#include "tc.h"
#include "tc_internal.h"

Go to the source code of this file.

Functions

signature_share_ttc_node_sign (const key_share_t *share, const bytes_t *doc, const key_metainfo_t *info)
 

Variables

const unsigned int HASH_LEN = 32
 

Function Documentation

signature_share_t* tc_node_sign ( const key_share_t share,
const bytes_t doc,
const key_metainfo_t info 
)

Function that generates a signature share using a key share. A standard RSA signature is generated using several signature shares. The document to be signed should be prepared (hashed and padded) before using this function. In order to prepare the document we provide the tc_prepare_document function. But any other padder function may be used. For example, the Botan library provides a complete set of procedures that provide that functionality.

Parameters
[in]sharethe key share to be used in the signature operation.
[in]docthe document to be signed.
[in]themetainfo of the key shares array.
Returns
a signature share.

Definition at line 23 of file algorithms_node_sign.c.

Variable Documentation

const unsigned int HASH_LEN = 32
Parameters
outthe resulting of the procedure
sharethe key share that has to be used in this procedure
pkthe public key corresponding to the key share
infothe meta info of the key share set
docthe document to be signed

Definition at line 21 of file algorithms_node_sign.c.