Finalized Crypto API, bugfixing, testfixing, error handling