Some more crypto wrapper functions are needed.