added key accessor for RSA, DSA needs testing