Implementing ECDSA and RSA Keys and Signatures