Previously, sign() and verify() for RSA and ECDSA freed the digest
and key contexts at verify_done without resetting the pointers. If
creating the resulting ArrayBuffer then failed, the error path freed
both contexts again.
Reset the pointers after freeing, as the QuickJS implementation does.