Commit a3b620ae authored by Niels Möller's avatar Niels Möller
Browse files

Added SIGN and VERIFY macros.

Rev: src/abstract_crypto.h:1.6
parent 7854b426
......@@ -86,6 +86,8 @@ struct signer
UINT8 *data);
};
#define SIGN(signer, length, data) ((signer)->sign((signer), (length), (data)))
struct verifier
{
int (*verify)(struct verifier *closure,
......@@ -94,7 +96,10 @@ struct verifier
UINT32 signature_length,
UINT8 * signature_data);
};
#define VERIFY(verifier, length, data, slength, sdata)\
((verifier)->verify((verifier), (length), (data), (slength), (sdata)))
struct signature_algorithm
{
struct signer *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment