fixed AES-CCM/GCM authenticated encryption by eliminating generation of superfluous generation of integrity keying material

This commit is contained in:
Andreas Steffen
2008-11-12 04:02:10 +00:00
parent 479f295049
commit dbc277d908
+4
View File
@@ -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))
{