Added initialization and clean up code for the rsa-ctx struct