Question: Need a c function that takes 3 parameters( client id, transaction id, and number of stocks) all ints, and encrypts those numbers together using RSA

Need a c function that takes 3 parameters( client id, transaction id, and number of stocks) all ints, and encrypts those numbers together using RSA pke, and then decrypts those numbers expanding them back out separately to 3 numbers instead of all one together. A picture is shown to help explain what I mean below
 Need a c function that takes 3 parameters( client id, transaction

Need a C++ program client/server(broker in this case) program that uses UDP sockets to communicate to each other using a third party(class) key manager for RSA encryption Assumptions: All principals (clients and brokers) know the Key Manager's IP address and port number .All clients know the IP address and port number of all brokers. Clients requests to buy/sell stocks do not need to identify which stock. Assume a default stock. (Students may add this field in . the struct definition, but it will increase the size of the message that need to be encrypted. Client (1) Register(Client ID, K(Client, pub)) Key Manager Broker (1) Reg ster(Broker ID, K(Broker, pub)) (2) Request key(Broker) (3) Key(Broker, pub) 4) P - Buy Clien t ID, Trans ID Num Stocks) C-EncryptP, K(Broker, pub) 5) Decrypt C, K(Broker, priv)] P Confirm(Client ID, Trans ID Num _Stocks) C " Encrypt(P, K(Client, pub)) (6) DecryptC, K(Client, priv)l P- Verify Client ID, Trans ID, Num Stocks) C Encrypt[P, K(Client, priv) (6) Request key Client) (7) KeylClient, pub) (8) DecryptC, KClient, pub)] P Done(Client ID, Trans ID Num Stocks) Encrypt(P, K(Broker, priv)l (9) Decrypt[C, K(Broker, pub)) Need a C++ program client/server(broker in this case) program that uses UDP sockets to communicate to each other using a third party(class) key manager for RSA encryption Assumptions: All principals (clients and brokers) know the Key Manager's IP address and port number .All clients know the IP address and port number of all brokers. Clients requests to buy/sell stocks do not need to identify which stock. Assume a default stock. (Students may add this field in . the struct definition, but it will increase the size of the message that need to be encrypted. Client (1) Register(Client ID, K(Client, pub)) Key Manager Broker (1) Reg ster(Broker ID, K(Broker, pub)) (2) Request key(Broker) (3) Key(Broker, pub) 4) P - Buy Clien t ID, Trans ID Num Stocks) C-EncryptP, K(Broker, pub) 5) Decrypt C, K(Broker, priv)] P Confirm(Client ID, Trans ID Num _Stocks) C " Encrypt(P, K(Client, pub)) (6) DecryptC, K(Client, priv)l P- Verify Client ID, Trans ID, Num Stocks) C Encrypt[P, K(Client, priv) (6) Request key Client) (7) KeylClient, pub) (8) DecryptC, KClient, pub)] P Done(Client ID, Trans ID Num Stocks) Encrypt(P, K(Broker, priv)l (9) Decrypt[C, K(Broker, pub))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!