简体   繁体   中英

How to generate g and p for DH safely on Arduino Nano

I want to make a DH Key exchange with a PC and an Arduino. I want to generate a Prime p and a Base g on the Arduino that should be 2048 Bits long.

You don't generate p and g .

They are specified by the Diffie-Hellman group choice.

You only need to generate a random integer in the range of zero to the group mod-1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM