#include <gmp.h>
#include <mhash.h>
#include "mathutils.h"
#include "tc.h"
#include "tc_internal.h"
Go to the source code of this file.
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] | share | the key share to be used in the signature operation. |
[in] | doc | the document to be signed. |
[in] | the | metainfo of the key shares array. |
- Returns
- a signature share.
Definition at line 23 of file algorithms_node_sign.c.
const unsigned int HASH_LEN = 32 |
- Parameters
-
out | the resulting of the procedure |
share | the key share that has to be used in this procedure |
pk | the public key corresponding to the key share |
info | the meta info of the key share set |
doc | the document to be signed |
Definition at line 21 of file algorithms_node_sign.c.