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

Function carp_hmac_verify

freebsd/netinet/ip_carp.c:432–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432static int
433carp_hmac_verify(struct carp_softc *sc, uint32_t counter[2],
434 unsigned char md[20])
435{
436 unsigned char md2[20];
437
438 CARP_LOCK_ASSERT(sc);
439
440 carp_hmac_generate(sc, counter, md2);
441
442 return (bcmp(md, md2, sizeof(md2)));
443}
444
445/*
446 * process input packet.

Callers 1

carp_input_cFunction · 0.85

Calls 1

carp_hmac_generateFunction · 0.85

Tested by

no test coverage detected