是否有任何的x86指令来加速SHA(SHA1 / 2 /五百一十二分之二百五十六)编码? [英] Are there in x86 any instructions to accelerate SHA (SHA1/2/256/512) encoding?

查看:373
本文介绍了是否有任何的x86指令来加速SHA(SHA1 / 2 /五百一十二分之二百五十六)编码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个例子,在 86的指令集,硬件加速AES 。但在有任何的x86指令来加速SHA(SHA1 / 2 /五百一十二分之二百五十六)编码,什么库编码在x86 SHA的fastet?

An example, in x86 are Instruction Set to hardware acceleration AES. But are there in x86 any instructions to accelerate SHA (SHA1/2/256/512) encoding, and what library is the fastet to encoding SHA on x86?

推荐答案

在英特尔 SKYLAKE微架构微到达2015年,公认的答案将是不正确时,它说:英特尔并​​没有作出专门的指令集的SHA-1或两个。 英特尔upcomming说明加速SHA1 / 256哈希计算。

Once the Intel Skylake microarchitecture arrives in 2015, the accepted answer will be incorrect when it says: "Intel hasn't made dedicated instruction set for SHA-1 or two". Intel has upcomming instructions for accelerating the calculation of SHA1/256 hashes.

您可以阅读更多关于他们,如何检测,如果你的CPU的支持,以及如何使用它们的这里。直到SKYLAKE微架构到达一个C / C ++程序员可能是最好还是使用 OpenSSL的

You can read more about them, how to detect if your CPU support them and how to use them here. Until Skylake arrives a C/C++ programmer is probably best off using OpenSSL.

这篇关于是否有任何的x86指令来加速SHA(SHA1 / 2 /五百一十二分之二百五十六)编码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆