/freebsd/sys/crypto/openssl/ |
H A D | ossl_x86.c | 51 unsigned int OPENSSL_ia32cap_P[4]; variable 52 #define AESNI_CAPABLE (OPENSSL_ia32cap_P[1]&(1<<(57-32))) 72 OPENSSL_ia32cap_P[0] = cpu_feature & ~(CPUID_B20 | CPUID_IA64); in ossl_cpuid() 74 OPENSSL_ia32cap_P[0] |= CPUID_IA64; in ossl_cpuid() 76 OPENSSL_ia32cap_P[0] |= CPUID_B20; in ossl_cpuid() 84 OPENSSL_ia32cap_P[0] &= ~CPUID_HTT; in ossl_cpuid() 94 OPENSSL_ia32cap_P[0] &= ~CPUID_HTT; in ossl_cpuid() 96 OPENSSL_ia32cap_P[0] &= ~CPUID_HTT; in ossl_cpuid() 98 OPENSSL_ia32cap_P[1] = cpu_feature2 & ~AMDID2_XOP; in ossl_cpuid() 100 OPENSSL_ia32cap_P[1] |= amd_feature2 & AMDID2_XOP; in ossl_cpuid() [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | cpuid.c | 17 extern unsigned int OPENSSL_ia32cap_P[4]; 113 vec = OPENSSL_ia32_cpuid(OPENSSL_ia32cap_P) & ~mask; in OPENSSL_cpuid_setup() 126 vec = OPENSSL_ia32_cpuid(OPENSSL_ia32cap_P); in OPENSSL_cpuid_setup() 136 OPENSSL_ia32cap_P[2] &= ~(unsigned int)vecx; in OPENSSL_cpuid_setup() 137 OPENSSL_ia32cap_P[3] &= ~(unsigned int)(vecx >> 32); in OPENSSL_cpuid_setup() 139 OPENSSL_ia32cap_P[2] = (unsigned int)vecx; in OPENSSL_cpuid_setup() 140 OPENSSL_ia32cap_P[3] = (unsigned int)(vecx >> 32); in OPENSSL_cpuid_setup() 143 OPENSSL_ia32cap_P[2] = 0; in OPENSSL_cpuid_setup() 144 OPENSSL_ia32cap_P[3] = 0; in OPENSSL_cpuid_setup() 147 vec = OPENSSL_ia32_cpuid(OPENSSL_ia32cap_P); in OPENSSL_cpuid_setup() [all …]
|
H A D | info.c | 48 (unsigned long long)OPENSSL_ia32cap_P[0] | in DEFINE_RUN_ONCE_STATIC() 49 (unsigned long long)OPENSSL_ia32cap_P[1] << 32, in DEFINE_RUN_ONCE_STATIC() 50 (unsigned long long)OPENSSL_ia32cap_P[2] | in DEFINE_RUN_ONCE_STATIC() 51 (unsigned long long)OPENSSL_ia32cap_P[3] << 32); in DEFINE_RUN_ONCE_STATIC()
|
/freebsd/sys/crypto/openssl/i386/ |
H A D | x86cpuid.S | 168 leal OPENSSL_ia32cap_P-.L009PIC_me_up(%ecx),%ecx 188 leal OPENSSL_ia32cap_P-.L011PIC_me_up(%ecx),%ecx 259 leal OPENSSL_ia32cap_P-.L015PIC_me_up(%ecx),%ecx 398 leal OPENSSL_ia32cap_P-.L025PIC_me_up(%edx),%edx 451 leal OPENSSL_ia32cap_P-.L028PIC_me_up(%edx),%edx 596 .hidden OPENSSL_ia32cap_P 597 .comm OPENSSL_ia32cap_P,16,4 780 leal OPENSSL_ia32cap_P,%ecx 797 leal OPENSSL_ia32cap_P,%ecx 865 leal OPENSSL_ia32cap_P,%ecx [all …]
|
H A D | rc4-586.S | 44 leal OPENSSL_ia32cap_P-.L004PIC_me_up(%ebp),%ebp 295 leal OPENSSL_ia32cap_P-.L010PIC_me_up(%edx),%edx 375 leal OPENSSL_ia32cap_P-.L020PIC_me_up(%edx),%edx 397 .comm OPENSSL_ia32cap_P,16,4 454 leal OPENSSL_ia32cap_P,%ebp 702 leal OPENSSL_ia32cap_P,%edx 779 leal OPENSSL_ia32cap_P,%edx 801 .comm OPENSSL_ia32cap_P,16,4
|
H A D | x86-gf2m.S | 262 leal OPENSSL_ia32cap_P-.L000PIC_me_up(%edx),%edx 362 .comm OPENSSL_ia32cap_P,16,4 637 leal OPENSSL_ia32cap_P,%edx 737 .comm OPENSSL_ia32cap_P,16,4
|
H A D | x86-mont.S | 69 leal OPENSSL_ia32cap_P-.L003PIC_me_up(%eax),%eax 482 .comm OPENSSL_ia32cap_P,16,4 564 leal OPENSSL_ia32cap_P,%eax 977 .comm OPENSSL_ia32cap_P,16,4
|
H A D | bn-586.S | 17 leal OPENSSL_ia32cap_P-.L000PIC_me_up(%eax),%eax 305 leal OPENSSL_ia32cap_P-.L010PIC_me_up(%eax),%eax 492 leal OPENSSL_ia32cap_P-.L017PIC_me_up(%eax),%eax 1566 .comm OPENSSL_ia32cap_P,16,4 1596 leal OPENSSL_ia32cap_P,%eax 1881 leal OPENSSL_ia32cap_P,%eax 2065 leal OPENSSL_ia32cap_P,%eax 3139 .comm OPENSSL_ia32cap_P,16,4
|
/freebsd/crypto/openssl/providers/implementations/rands/seeding/ |
H A D | rand_cpu_x86.c | 93 if ((OPENSSL_ia32cap_P[2] & (1 << 18)) != 0) { in get_hardware_random_value() 96 } else if ((OPENSSL_ia32cap_P[1] & (1 << (62 - 32))) != 0) { in get_hardware_random_value()
|
H A D | rand_tsc.c | 38 if ((OPENSSL_ia32cap_P[0] & (1 << 4)) != 0) { in ossl_prov_acquire_entropy_from_tsc()
|
/freebsd/crypto/openssl/test/ |
H A D | rdrand_sanitytest.c | 100 int have_rdseed = (OPENSSL_ia32cap_P[2] & (1 << 18)) != 0; in setup_tests() 101 int have_rdrand = (OPENSSL_ia32cap_P[1] & (1 << (62 - 32))) != 0; in setup_tests()
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | aes_platform.h | 136 # define AESNI_CBC_HMAC_SHA_CAPABLE (OPENSSL_ia32cap_P[1]&(1<<(57-32))) 147 # define AESNI_CAPABLE (OPENSSL_ia32cap_P[1]&(1<<(57-32))) 149 # define VPAES_CAPABLE (OPENSSL_ia32cap_P[1]&(1<<(41-32))) 152 # define BSAES_CAPABLE (OPENSSL_ia32cap_P[1]&(1<<(41-32)))
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_rc4_hmac_md5_hw.c | 76 && (OPENSSL_ia32cap_P[0] & (1 << 20)) == 0) { in cipher_hw_rc4_hmac_md5_cipher() 122 && (OPENSSL_ia32cap_P[0] & (1 << 20)) == 0) { in cipher_hw_rc4_hmac_md5_cipher()
|
H A D | cipher_aes_cbc_hmac_sha256_hw.c | 432 if (((OPENSSL_ia32cap_P[2] & (1 << 29)) || /* SHAEXT? */ in aesni_cbc_hmac_sha256_cipher() 433 ((OPENSSL_ia32cap_P[1] & (1 << (60 - 32))) && /* AVX? */ in aesni_cbc_hmac_sha256_cipher() 434 ((OPENSSL_ia32cap_P[1] & (1 << (43 - 32))) /* XOP? */ in aesni_cbc_hmac_sha256_cipher() 435 | (OPENSSL_ia32cap_P[0] & (1 << 30))))) && /* "Intel CPU"? */ in aesni_cbc_hmac_sha256_cipher() 784 if (inp_len >= 8192 && OPENSSL_ia32cap_P[2] & (1 << 5)) in aesni_cbc_hmac_sha256_tls1_multiblock_aad()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aes_cbc_hmac_sha256.c | 463 if (((OPENSSL_ia32cap_P[2] & (1 << 29)) || /* SHAEXT? */ in aesni_cbc_hmac_sha256_cipher() 464 ((OPENSSL_ia32cap_P[1] & (1 << (60 - 32))) && /* AVX? */ in aesni_cbc_hmac_sha256_cipher() 465 ((OPENSSL_ia32cap_P[1] & (1 << (43 - 32))) /* XOP? */ in aesni_cbc_hmac_sha256_cipher() 466 | (OPENSSL_ia32cap_P[0] & (1 << 30))))) && /* "Intel CPU"? */ in aesni_cbc_hmac_sha256_cipher() 846 if (inp_len >= 8192 && OPENSSL_ia32cap_P[2] & (1 << 5)) in aesni_cbc_hmac_sha256_ctrl() 934 return ((OPENSSL_ia32cap_P[1] & AESNI_CAPABLE) && in EVP_aes_128_cbc_hmac_sha256() 941 return ((OPENSSL_ia32cap_P[1] & AESNI_CAPABLE) && in EVP_aes_256_cbc_hmac_sha256()
|
H A D | e_rc4_hmac_md5.c | 100 (OPENSSL_ia32cap_P[0] & (1 << 20)) == 0) { in rc4_hmac_md5_cipher() 144 (OPENSSL_ia32cap_P[0] & (1 << 20)) == 0) { in rc4_hmac_md5_cipher()
|
H A D | e_aes_cbc_hmac_sha1.c | 862 if (inp_len >= 8192 && OPENSSL_ia32cap_P[2] & (1 << 5)) in aesni_cbc_hmac_sha1_ctrl() 950 return (OPENSSL_ia32cap_P[1] & AESNI_CAPABLE ? in EVP_aes_128_cbc_hmac_sha1() 956 return (OPENSSL_ia32cap_P[1] & AESNI_CAPABLE ? in EVP_aes_256_cbc_hmac_sha1()
|
/freebsd/crypto/openssl/crypto/engine/ |
H A D | eng_rdrand.c | 86 if (OPENSSL_ia32cap_P[1] & (1 << (62 - 32))) { in engine_load_rdrand_int()
|
/freebsd/crypto/openssl/include/internal/ |
H A D | cryptlib.h | 92 extern unsigned int OPENSSL_ia32cap_P[];
|
/freebsd/sys/crypto/openssl/amd64/ |
H A D | x86_64cpuid.S | 7 .hidden OPENSSL_ia32cap_P 8 .comm OPENSSL_ia32cap_P,16,4
|
H A D | rc4-x86_64.S | 36 movl OPENSSL_ia32cap_P(%rip),%r8d 550 movl OPENSSL_ia32cap_P(%rip),%r8d 617 movl OPENSSL_ia32cap_P(%rip),%edx
|
H A D | rsaz-x86_64.S | 38 andl OPENSSL_ia32cap_P+8(%rip),%r11d 739 andl OPENSSL_ia32cap_P+8(%rip),%r11d 896 andl OPENSSL_ia32cap_P+8(%rip),%r11d 1283 andl OPENSSL_ia32cap_P+8(%rip),%r11d 1394 movl OPENSSL_ia32cap_P+8(%rip),%eax
|
H A D | x86_64-gf2m.S | 211 movq OPENSSL_ia32cap_P(%rip),%r10
|
H A D | ecp_nistz256-x86_64.S | 2793 andl OPENSSL_ia32cap_P+8(%rip),%ecx 3125 andl OPENSSL_ia32cap_P+8(%rip),%ecx 3880 andl OPENSSL_ia32cap_P+8(%rip),%ecx 3898 andl OPENSSL_ia32cap_P+8(%rip),%ecx 4193 andl OPENSSL_ia32cap_P+8(%rip),%ecx 4854 movl OPENSSL_ia32cap_P+8(%rip),%eax 4940 movl OPENSSL_ia32cap_P+8(%rip),%eax 5264 andl OPENSSL_ia32cap_P+8(%rip),%ecx 5496 andl OPENSSL_ia32cap_P+8(%rip),%ecx 5914 andl OPENSSL_ia32cap_P+8(%rip),%ecx
|
/freebsd/crypto/openssl/crypto/modes/ |
H A D | gcm128.c | 738 if (OPENSSL_ia32cap_P[1] & (1 << 1)) { /* check PCLMULQDQ bit */ 739 if (((OPENSSL_ia32cap_P[1] >> 22) & 0x41) == 0x41) { /* AVX+MOVBE */ 754 if (OPENSSL_ia32cap_P[0] & (1 << 25)) { /* check SSE bit */ 756 if (OPENSSL_ia32cap_P[0] & (1 << 23)) { /* check MMX bit */
|