libtc
20160415
Threshold Cryptography functions library
|
Go to the source code of this file.
Functions | |
bytes_t * | tc_prepare_document (const bytes_t *doc, tc_hash_type_t hash_type, const key_metainfo_t *metainfo) |
Variables | |
const uint8_t | MD2_PKCS_ID [] |
const uint8_t | MD5_PKCS_ID [] |
const uint8_t | RIPEMD_128_PKCS_ID [] |
const uint8_t | RIPEMD_160_PKCS_ID [] |
const uint8_t | SHA_160_PKCS_ID [] |
const uint8_t | SHA_224_PKCS_ID [] |
const uint8_t | SHA_256_PKCS_ID [] |
const uint8_t | SHA_384_PKCS_ID [] |
const uint8_t | SHA_512_PKCS_ID [] |
const uint8_t | TIGER_PKCS_ID [] |
bytes_t* tc_prepare_document | ( | const bytes_t * | doc, |
tc_hash_type_t | hash_type, | ||
const key_metainfo_t * | metainfo | ||
) |
Function that hashes and adds the PKCS1 padding to the document to be signed. This function should be only used in testing environments. In production environments, any function that does the PSS padding should be used. Such functions are provided by general cryptography suites such as OpenSSL or Botan.
[in] | doc | the document to be prepared. |
[in] | hash_type | the hash function to be used in the document. |
[in] | metainfo | the metainfo of the key shares array, with the public key. |
Definition at line 91 of file algorithms_pkcs1_encoding.c.
const uint8_t MD2_PKCS_ID[] |
Definition at line 4 of file algorithms_pkcs1_encoding.c.
const uint8_t MD5_PKCS_ID[] |
Definition at line 8 of file algorithms_pkcs1_encoding.c.
const uint8_t RIPEMD_128_PKCS_ID[] |
Definition at line 12 of file algorithms_pkcs1_encoding.c.
const uint8_t RIPEMD_160_PKCS_ID[] |
Definition at line 16 of file algorithms_pkcs1_encoding.c.
const uint8_t SHA_160_PKCS_ID[] |
Definition at line 20 of file algorithms_pkcs1_encoding.c.
const uint8_t SHA_224_PKCS_ID[] |
Definition at line 24 of file algorithms_pkcs1_encoding.c.
const uint8_t SHA_256_PKCS_ID[] |
Definition at line 28 of file algorithms_pkcs1_encoding.c.
const uint8_t SHA_384_PKCS_ID[] |
Definition at line 32 of file algorithms_pkcs1_encoding.c.
const uint8_t SHA_512_PKCS_ID[] |
Definition at line 36 of file algorithms_pkcs1_encoding.c.
const uint8_t TIGER_PKCS_ID[] |
Definition at line 40 of file algorithms_pkcs1_encoding.c.