Should shared secret be hashed (SHA-256) in ECDH?

229 Views Asked by At

FIDO2 uses ECDH (elliptic curve diffie hellman) for key agreement. However, in its sequence diagram, I see they hash the shared secret using SHA-256. Is there any specific reason to use the hash instead of the shared secret itself?

Here is the FIDO sequence diagram: https://fidoalliance.org/specs/fido-v2.0-rd-20180702/img/fido-2.0-clientpin.png

0

There are 0 best solutions below