add unittest for crypto api (hash and random)
tidy fallback assertion
fix asm.js validation
add stubs for RSA interface
initial implementation of the RSA crypto operations