Make E2E keys readable.

This adds support for MDC packets with the critical bit set, adds ECDSA to the keytypes that can sign, and adds a testcase for an End-to-End-generated key.