Home
last modified time | relevance | path

Searched refs:OPENSSL_ia32cap_P (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/sys/crypto/openssl/
H A Dossl_x86.c51 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 Dcpuid.c17 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 Dinfo.c48 (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 Dx86cpuid.S168 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 Drc4-586.S44 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 Dx86-gf2m.S262 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 Dx86-mont.S69 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 Dbn-586.S17 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 Drand_cpu_x86.c93 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 Drand_tsc.c38 if ((OPENSSL_ia32cap_P[0] & (1 << 4)) != 0) { in ossl_prov_acquire_entropy_from_tsc()
/freebsd/crypto/openssl/test/
H A Drdrand_sanitytest.c100 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 Daes_platform.h136 # 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 Dcipher_rc4_hmac_md5_hw.c76 && (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 Dcipher_aes_cbc_hmac_sha256_hw.c432 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 De_aes_cbc_hmac_sha256.c463 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 De_rc4_hmac_md5.c100 (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 De_aes_cbc_hmac_sha1.c862 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 Deng_rdrand.c86 if (OPENSSL_ia32cap_P[1] & (1 << (62 - 32))) { in engine_load_rdrand_int()
/freebsd/crypto/openssl/include/internal/
H A Dcryptlib.h92 extern unsigned int OPENSSL_ia32cap_P[];
/freebsd/sys/crypto/openssl/amd64/
H A Dx86_64cpuid.S7 .hidden OPENSSL_ia32cap_P
8 .comm OPENSSL_ia32cap_P,16,4
H A Drc4-x86_64.S36 movl OPENSSL_ia32cap_P(%rip),%r8d
550 movl OPENSSL_ia32cap_P(%rip),%r8d
617 movl OPENSSL_ia32cap_P(%rip),%edx
H A Drsaz-x86_64.S38 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 Dx86_64-gf2m.S211 movq OPENSSL_ia32cap_P(%rip),%r10
H A Decp_nistz256-x86_64.S2793 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 Dgcm128.c738 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 */

123