| 222 | } |
| 223 | |
| 224 | static int |
| 225 | blake2_process(device_t dev, struct cryptop *crp, int hint __unused) |
| 226 | { |
| 227 | struct blake2_session *ses; |
| 228 | int error; |
| 229 | |
| 230 | ses = crypto_get_driver_session(crp->crp_session); |
| 231 | error = blake2_cipher_process(ses, crp); |
| 232 | |
| 233 | crp->crp_etype = error; |
| 234 | crypto_done(crp); |
| 235 | return (0); |
| 236 | } |
| 237 | |
| 238 | static device_method_t blake2_methods[] = { |
| 239 | DEVMETHOD(device_identify, blake2_identify), |
nothing calls this directly
no test coverage detected