[crypto] basic sign and verify scratchpad code