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

Function verify_ecpm

dpdk/app/test/test_cryptodev_asym_util.h:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49static inline int verify_ecpm(uint8_t *result_x, uint8_t *result_y,
50 struct rte_crypto_op *result_op)
51{
52 if (memcmp(result_x, result_op->asym->ecpm.r.x.data,
53 result_op->asym->ecpm.r.x.length) ||
54 memcmp(result_y, result_op->asym->ecpm.r.y.data,
55 result_op->asym->ecpm.r.y.length))
56 return -1;
57
58 return 0;
59}
60
61static inline int verify_ecdh_secret(uint8_t *result_x, uint8_t *result_y,
62 struct rte_crypto_op *result_op)

Callers 1

test_ecpmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected