add main_read_pkey()
main_derive_key_rsa(), main_derive_key_dh(): use main_read_pkey()
implement RSA signature generation and verification