CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2016/11/04 11:30:30
Modified files: lib/libcrypto : cryptlib.c cryptlib.h x86_64cpuid.pl x86cpuid.pl lib/libcrypto/aes/asm: aes-586.pl aes-x86_64.pl aesni-sha1-x86_64.pl lib/libcrypto/bn/asm: bn-586.pl x86-gf2m.pl x86-mont.pl x86_64-gf2m.pl lib/libcrypto/engine: eng_aesni.c lib/libcrypto/evp: e_aes.c e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c lib/libcrypto/modes: gcm128.c lib/libcrypto/perlasm: x86_64-xlate.pl x86asm.pl x86gas.pl lib/libcrypto/rc4/asm: rc4-586.pl rc4-x86_64.pl lib/libcrypto/sha/asm: sha1-586.pl sha1-x86_64.pl sha512-586.pl lib/libcrypto/whrlpool: wp_block.c Added files: lib/libcrypto : x86_arch.h Log message: Replace all uses of magic numbers when operating on OPENSSL_ia32_P[] by meaningful constants in a private header file, so that reviewers can actually get a chance to figure out what the code is attempting to do without knowing all cpuid bits. While there, turn it from an array of two 32-bit ints into a properly aligned 64-bit int. Use of OPENSSL_ia32_P is now restricted to the assembler parts. C code will now always use OPENSSL_cpu_caps() and check for the proper bits in the whole 64-bit word it returns. i386 tests and ok jsing@