Public key encryption

Hello everyone, i am conducting a project for university and i need to encrypt two integer values using an asymetric scheme and then transmit them to my laptop. As a begginer i don`t even know where to start but what i have tried so far (the idea):

  1. use Curve 25519 to create key on arduino
  2. send key to laptop
  3. receive key from laptop
  4. check if keys are the same
  5. use encryption method (maybe AES)

Please correct me if i am wrong with the way i am doing it or if there are premade libraries to handle everything.

Thank you

AES is not asymmetric. Look at RSA, I seem to remember that there is a library but I might be mistaken.

The trick with asymmetric encryption is that both sides use different keys (that are related).