While SHA-1 is broken, most intelligent systems use only HMAC , which is stronger and probably still great . However, newer protocols, such as TLS 1.2 , use at least SHA -256 for their pseudo-random function (PRF).
You should trim the result to the size you need (as most PRF does). Some previous discussions are available on this subject .
In terms of key length, see keylength.com . You want to make sure that you agree on how you use each primitive.
source
share