Add RSA DER encoding and decoding functions for public keys

Wouldn't it also make sense to hardcode some data to compare against here, rather than purely programmatically testing it? (not that that blocks merging)