add RSA private key generation restrictions to primitive layer
move rsa param verification to shared function
Merge pull request #1082 from reaperhulk/move-a-test

add RSA key generation restrictions to primitive layer