OpenBSD CVS

CVS log for src/lib/libcrypto/x86cpuid.pl


[BACK] Up to [local] / src / lib / libcrypto

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 28 11:21:12 2024 UTC (2 months, 2 weeks ago) by jsing
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +0 -4 lines
Diff to previous 1.10 (colored)

Remove .init section that calls OPENSSL_cpuid_setup on i386.

OPENSSL_cpuid_setup() is already called from OPENSSL_crypto_init(), hence
we do not need or want automatic initialisation on library load.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 17 15:04:27 2023 UTC (16 months, 3 weeks ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.9: +0 -45 lines
Diff to previous 1.9 (colored)

Remove non-visible and unused OPENSSL_wipe_cpu and OPENSSL_atomic_add
interfaces, and remove empty assembly OPENSSL_cpuid_setup routines - the
default empty C fallback will work as good.

ok jsing@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Dec 26 07:18:50 2022 UTC (17 months, 2 weeks ago) by jmc
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

spelling fixes; from paul tagliamonte
i removed the arithmetics -> arithmetic changes, as i felt they
were not clearly correct

ok tb

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 4 17:30:30 2016 UTC (7 years, 7 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.7: +33 -23 lines
Diff to previous 1.7 (colored)

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@

Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 4 13:53:06 2016 UTC (7 years, 7 months ago) by miod
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

In OPENSSL_wipe_cpu() on i386, which noone uses anyway, check the proper
flag for the presence of a FPU before deciding to wipe the fpu registers.

ok jsing@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 20 15:49:42 2014 UTC (9 years, 11 months ago) by miod
Branch: MAIN
Changes since 1.5: +0 -70 lines
Diff to previous 1.5 (colored)

Remove OPENSSL_instrument_halt and OPENSSL_far_spin, which both might
have been used under DJGPP in the previous century (if at all).

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 2 15:08:37 2014 UTC (10 years ago) by deraadt
Branch: MAIN
Changes since 1.4: +0 -12 lines
Diff to previous 1.4 (colored)

A few months back there was a big community fuss regarding direct-use
of the intel RDRAND instruction.  Consensus was RDRAND should probably
only be used as an additional source of entropy in a mixer.

Guess which library bends over backwards to provide easy access to
RDRAND?  Yep.  Guess which applications are using this support?  Not
even one... but still, this is being placed as a trap for someone.

Send this support straight to the abyss.
ok kettenis

Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 22 21:52:21 2014 UTC (10 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.3: +0 -39 lines
Diff to previous 1.3 (colored)

So it turns out that libcrypto on i386 platforms, unconditionaly compiles this
little gem called OPENSSL_indirect_call(), supposedly to be ``handy under
Win32''.

In my view, this is a free-win ROP entry point. Why try and return to libc
when you can return to libcrypto with an easy to use interface?

Better not give that much attack surface, and remove this undocumented
entry point.

ok beck@ tedu@

Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 17 18:49:35 2014 UTC (10 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.2: +0 -11 lines
Diff to previous 1.2 (colored)

Remove oh-so-important-from-a-security-pov OpenSSL_rtdsc() function.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 17 18:16:45 2014 UTC (10 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.1: +124 -25 lines
Diff to previous 1.1 (colored)

Ok, there was a need for OPENSSL_cleanse() instead of bzero() to prevent
supposedly smart compilers from optimizing memory cleanups away. Understood.

Ok, in case of an hypothetically super smart compiler, OPENSSL_cleanse() had
to be convoluted enough for the compiler not to recognize that this was
actually bzero() in disguise. Understood.

But then why there had been optimized assembler versions of OPENSSL_cleanse()
is beyond me. Did someone not trust the C obfuscation?

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Sun Apr 13 15:16:32 2014 UTC (10 years, 2 months ago) by miod
Changes since 1.1.1.3: +4 -2 lines
Diff to previous 1.1.1.3 (colored)

Import OpenSSL 1.0.1g

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sat Oct 13 21:23:33 2012 UTC (11 years, 8 months ago) by djm
Changes since 1.1.1.2: +61 -17 lines
Diff to previous 1.1.1.2 (colored)

import OpenSSL-1.0.1c

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Oct 1 22:54:02 2010 UTC (13 years, 8 months ago) by djm
Changes since 1.1.1.1: +98 -11 lines
Diff to previous 1.1.1.1 (colored)

import OpenSSL-1.0.0a

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Sep 6 12:15:39 2008 UTC (15 years, 9 months ago) by djm
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

import of OpenSSL 0.9.8h

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 6 12:15:39 2008 UTC (15 years, 9 months ago) by djm
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.