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

Function crypto_getcaps

freebsd/opencrypto/crypto.c:1100–1113  ·  view source on GitHub ↗

* Return the device/driver capabilities. */

Source from the content-addressed store, hash-verified

1098 * Return the device/driver capabilities.
1099 */
1100int
1101crypto_getcaps(int hid)
1102{
1103 struct cryptocap *cap;
1104 int flags;
1105
1106 flags = 0;
1107 CRYPTO_DRIVER_LOCK();
1108 cap = crypto_checkdriver(hid);
1109 if (cap != NULL)
1110 flags = cap->cc_flags;
1111 CRYPTO_DRIVER_UNLOCK();
1112 return (flags);
1113}
1114
1115/*
1116 * Register support for a key-related algorithm. This routine

Callers 1

checkforsoftwareFunction · 0.85

Calls 1

crypto_checkdriverFunction · 0.85

Tested by

no test coverage detected