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

Function kdriver_suitable

freebsd/opencrypto/crypto.c:1501–1505  ·  view source on GitHub ↗

* Verify a driver is suitable for the specified operation. */

Source from the content-addressed store, hash-verified

1499 * Verify a driver is suitable for the specified operation.
1500 */
1501static __inline int
1502kdriver_suitable(const struct cryptocap *cap, const struct cryptkop *krp)
1503{
1504 return (cap->cc_kalg[krp->krp_op] & CRYPTO_ALG_FLAG_SUPPORTED) != 0;
1505}
1506
1507/*
1508 * Select a driver for an asym operation. The driver must

Callers 2

crypto_select_kdriverFunction · 0.85
crypto_lookup_kdriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected