| 79 | } |
| 80 | |
| 81 | static int |
| 82 | cryptocteon_attach(device_t dev) |
| 83 | { |
| 84 | struct cryptocteon_softc *sc; |
| 85 | |
| 86 | sc = device_get_softc(dev); |
| 87 | |
| 88 | sc->sc_cid = crypto_get_driverid(dev, sizeof(struct octo_sess), |
| 89 | CRYPTOCAP_F_SOFTWARE | CRYPTOCAP_F_SYNC | |
| 90 | CRYPTOCAP_F_ACCEL_SOFTWARE); |
| 91 | if (sc->sc_cid < 0) { |
| 92 | device_printf(dev, "crypto_get_driverid ret %d\n", sc->sc_cid); |
| 93 | return (ENXIO); |
| 94 | } |
| 95 | |
| 96 | return (0); |
| 97 | } |
| 98 | |
| 99 | static bool |
| 100 | cryptocteon_auth_supported(const struct crypto_session_params *csp) |
nothing calls this directly
no test coverage detected