Advertisement
AnthonyCagliano

Untitled

Nov 14th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. } else if(ctl==RSA_SETUP){
  2. size_t rsa_len = len - 1;
  3. uint8_t e_buf[RSA_MODULUS_MAX];
  4. console_insert_line("generating secrets.", MSG_NORMAL);
  5. csrand_fill(secrets, sizeof secrets);
  6. console_insert_line("rsa encrypting secrets.", MSG_NORMAL);
  7. rsa_encrypt(secrets, sizeof secrets, e_buf, pkt_content, rsa_len, SHA256);
  8. console_insert_line("sending secrets.", MSG_NORMAL);
  9. inet_send_packet(1, AES_SECRET_ACK, e_buf, rsa_len);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement