signers implemented with HMAC now support NULL output parameters

to feed signer with more than one block of data.
This commit is contained in:
Martin Willi
2007-08-29 07:52:49 +00:00
parent ef5f65626f
commit dc5a849bf0
2 changed files with 34 additions and 17 deletions
@@ -74,6 +74,9 @@ extern enum_name_t *integrity_algorithm_names;
struct signer_t {
/**
* @brief Generate a signature.
*
* If buffer is NULL, data is processed and prepended to a next call until
* buffer is a valid pointer.
*
* @param this calling object
* @param data a chunk containing the data to sign
@@ -83,6 +86,9 @@ struct signer_t {
/**
* @brief Generate a signature and allocate space for it.
*
* If chunk is NULL, data is processed and prepended to a next call until
* chunk is a valid chunk pointer.
*
* @param this calling object
* @param data a chunk containing the data to sign