rsa prototype modifications, size & len function fixes