adding more structs and methods for rsa encryption