cryptodev: separate out internal structures