5

Is there a way to make use of AES-NI in Python? I do want to make HMAC faster by making use of my hardware support for AES-NI. Thanks.

ArekBulski
  • 4,520
  • 4
  • 39
  • 61
Hamza
  • 51
  • 3
  • You should react on answers Hamza, and please read the FAQ, especially regarding the use of tags. E.g. this question should definitely be tagged [[tag:python]] and [[tag:cryptography]] – Maarten Bodewes Feb 21 '13 at 21:01

1 Answers1

2

HMAC is using a secure cryptographic hash, not a symmetric cipher. You can make a "normal" MAC such as AES-CMAC perform better, but not a HMAC.

Maarten Bodewes
  • 90,524
  • 13
  • 150
  • 263
  • There is still no answer to the question, which could come handy for others finding this tread. – ArekBulski Jul 10 '16 at 19:29
  • @ArekBulski Negative answers are also answers. You cannot make HMAC faster through use of AES-NI, not unless you can use a hash that is sped up using it. Note that on later Intel processors SHA-2 operations are also sped up and there is AES-CMAC. So I don't see the point of using a non-standard hash. – Maarten Bodewes Jul 10 '16 at 20:06