Fix memory leak in GCM by adding gcm_free()

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-13 13:45:58 +02:00
parent deb7949a22
commit 4fe9200f47
4 changed files with 28 additions and 0 deletions

View file

@ -197,6 +197,13 @@ int gcm_finish( gcm_context *ctx,
unsigned char *tag,
size_t tag_len );
/**
* \brief Free a GCM context and underlying cipher sub-context
*
* \param ctx
*/
void gcm_free( gcm_context *ctx );
/**
* \brief Checkup routine
*