Use NIF instead of a driver for crypto functions