ECDSA support

Initial commit to merge DSA