Implementing cryptographic protocols

Hello,
I would like to inquire about applying cryptographic protocols to the ANAFI in order to securely communicate with the server.
I am trying to figure out how to implement and build the testbeds on those, but not sure if there is a way to do it, or if possible.

I would really appreciate getting some comments about it. Mostly the protocols consist of public key encryption and some lightweight operations, such as xor.

Thanks.