keep crypto.d.ts changes for 0.9.7 (1.0RC)

this is part of
bb9cf5d3c326267c01c1c83dc14dd9d8b35e9ee7