Using RSA signatures in Ring

Has anyone used the RSA signature in ring without writing to a file? . I'm looking to create a pcks8 byte stream and I'm having problems figuring it out.

encryptor (Code on lines 200 and 202 need help)

P.S. I'm doing this to eventually fuzz test ring.