Is calculating an MD5 hash less CPU intensive than SHA family functions?

后端 未结 6 1182
傲寒
傲寒 2020-11-28 06:48

Is calculating an MD5 hash less CPU intensive than SHA-1 or SHA-2 on \"standard\" laptop x86 hardware? I\'m interested in general information, not specific to a certain chip

6条回答
  •  时光取名叫无心
    2020-11-28 07:34

    MD5 also benefits from SSE2 usage, check out BarsWF and then tell me that it doesn't. All it takes is a little assembler knowledge and you can craft your own MD5 SSE2 routine(s). For large amounts of throughput however, there is a tradeoff of the speed during hashing as opposed to the time spent rearranging the input data to be compatible with the SIMD instructions used.

提交回复
热议问题