Add support for DSA and ECDSA key types

Change-Id: I4b7d11c0915c716a0f1be65f5933f33a36e0fb4b