Update to latest crypto-api

Closes #7