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

Go to the source code of this file.

Functions

int tc_verify_signature (const signature_share_t *signature, const bytes_t *doc, const key_metainfo_t *info)
 

Variables

const unsigned int HASH_LEN
 

Function Documentation

int tc_verify_signature ( const signature_share_t signature,
const bytes_t doc,
const key_metainfo_t info 
)

Function that verifies that a signature share was generated by any key shares that shares the same key metainfo. That means, any key shares that came from the same key_share array.

Parameters
signaturethe signature to be verified.
docthe document used to generate the signature share.
infothe metainfo of the key shares array used to sign.
Returns
1 if the signature share was generated by any key from the original key shares array. 0 otherwise.

Definition at line 9 of file algorithms_verify_signature.c.

Variable Documentation

const unsigned int HASH_LEN
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.