Implementations of rsa encryption in python and c