MCPcopy Create free account
hub / github.com/F-Stack/f-stack / find_match_auth_algo

Function find_match_auth_algo

dpdk/examples/ipsec-secgw/sa.c:276–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276static const struct supported_auth_algo *
277find_match_auth_algo(const char *auth_keyword)
278{
279 size_t i;
280
281 for (i = 0; i < RTE_DIM(auth_algos); i++) {
282 const struct supported_auth_algo *algo =
283 &auth_algos[i];
284
285 if (strcmp(auth_keyword, algo->keyword) == 0)
286 return algo;
287 }
288
289 return NULL;
290}
291
292static const struct supported_aead_algo *
293find_match_aead_algo(const char *aead_keyword)

Callers 1

parse_sa_tokensFunction · 0.70

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected