mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-12-08 05:19:46 +00:00
Rename _cpuid modules to make upgrades more robust
This commit is contained in:
parent
e8685bb202
commit
8b4a1c0c71
7 changed files with 17 additions and 9 deletions
|
|
@ -42,7 +42,7 @@ from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
|
|||
VoidPointer, SmartPointer,
|
||||
c_size_t, c_uint8_ptr)
|
||||
|
||||
from Crypto.Util import _cpuid
|
||||
from Crypto.Util import _cpu_features
|
||||
|
||||
|
||||
_cproto = """
|
||||
|
|
@ -68,7 +68,7 @@ _raw_aes_lib = load_pycryptodome_raw_lib("Crypto.Cipher._raw_aes",
|
|||
# Try to load AES with AES NI instructions
|
||||
try:
|
||||
_raw_aesni_lib = None
|
||||
if _cpuid.have_aes_ni():
|
||||
if _cpu_features.have_aes_ni():
|
||||
_raw_aesni_lib = load_pycryptodome_raw_lib("Crypto.Cipher._raw_aesni",
|
||||
_cproto.replace("AES",
|
||||
"AESNI"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue