From dbc277d908e826a9a4d6368d81ccd25c4c57963b Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Wed, 12 Nov 2008 04:02:10 +0000 Subject: fixed AES-CCM/GCM authenticated encryption by eliminating generation of superfluous generation of integrity keying material --- src/charon/config/proposal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/charon/config/proposal.c b/src/charon/config/proposal.c index 11143a4a6..7c075234d 100644 --- a/src/charon/config/proposal.c +++ b/src/charon/config/proposal.c @@ -212,6 +212,10 @@ static bool get_algorithm(private_proposal_t *this, transform_type_t type, enumerator_t *enumerator; bool found = FALSE; + if (key_size) + { + *key_size = 0; /* Just in case no algorithm is found */ + } enumerator = create_enumerator(this, type); if (enumerator->enumerate(enumerator, alg, key_size)) { -- cgit v1.2.3