2 ms·
Like this? Server: server_nonce Client: random_key + sign(hmac(server_nonce, random_key)) That's a nice alternative. Though generating random data and
by BoppreH 11y ago
Like this?
Server: server_nonce
Client: random_key + sign(hmac(server_nonce, random_key))
That's a nice alternative. Though generating random data and XOR'ing is as known and as primitive as you can get, and none of it is ever reused, so I have no preferences of one over the other.
(if you are thinking "why not just sign the hash of the nonce without bothering with a key?", that's exactly how we sign documents, because they are long. You could sign the hash of the hash to avoid this conflict, but that's a hack)