merged EAP framework from branch into trunk
includes a lot of other modifications
This commit is contained in:
@@ -363,6 +363,19 @@ static void reset(private_md5_hasher_t *this)
|
||||
this->count[1] = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hasher_t.get_state
|
||||
*/
|
||||
static chunk_t get_state(private_md5_hasher_t *this)
|
||||
{
|
||||
chunk_t chunk;
|
||||
|
||||
chunk.ptr = (u_char*)&this->state[0];
|
||||
chunk.len = sizeof(this->state);
|
||||
|
||||
return chunk;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementation of hasher_t.destroy.
|
||||
*/
|
||||
@@ -382,6 +395,7 @@ md5_hasher_t *md5_hasher_create(void)
|
||||
this->public.hasher_interface.allocate_hash = (void (*) (hasher_t*, chunk_t, chunk_t*))allocate_hash;
|
||||
this->public.hasher_interface.get_hash_size = (size_t (*) (hasher_t*))get_hash_size;
|
||||
this->public.hasher_interface.reset = (void (*) (hasher_t*))reset;
|
||||
this->public.hasher_interface.get_state = (chunk_t (*) (hasher_t*))get_state;
|
||||
this->public.hasher_interface.destroy = (void (*) (hasher_t*))destroy;
|
||||
|
||||
/* initialize */
|
||||
|
||||
Reference in New Issue
Block a user