Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if(ctl==RSA_SETUP){
- size_t rsa_len = len - 1;
- uint8_t e_buf[RSA_MODULUS_MAX];
- console_insert_line("generating secrets.", MSG_NORMAL);
- csrand_fill(secrets, sizeof secrets);
- console_insert_line("rsa encrypting secrets.", MSG_NORMAL);
- rsa_encrypt(secrets, sizeof secrets, e_buf, pkt_content, rsa_len, SHA256);
- console_insert_line("sending secrets.", MSG_NORMAL);
- inet_send_packet(1, AES_SECRET_ACK, e_buf, rsa_len);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement