libtc  20160415
Threshold Cryptography functions library
Functions
algorithms_rsa_verify.c File Reference
#include <gmp.h>
#include <stdlib.h>
#include "tc.h"
#include "tc_internal.h"

Go to the source code of this file.

Functions

int tc_rsa_verify (bytes_t *signature, bytes_t *doc, key_metainfo_t *info, tc_hash_type_t hashtype)
 

Function Documentation

int tc_rsa_verify ( bytes_t signature,
bytes_t doc,
key_metainfo_t info,
tc_hash_type_t  hashtype 
)

Function that verifies a standard RSA signature using the PKCS1 padding. Should be used only for testing purposed.

Parameters
[in]thesignature to be verified.
[in]thesigned document.
[in]themetainfo of the key shares array.
[in]thehash function used in the PKCS1 padding.
Returns
1 if the signature verifies the document, 0 otherwise.

Definition at line 14 of file algorithms_rsa_verify.c.