This sample shows how to create an OpenSSH public key from an OpenSSL public key.
Source : pubkey2ssh.c
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.