History log of /src/usr.bin/factor/factor.c (Results 1 – 25 of 38)
Revision Date Author Comments
# 5b31cc94 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sccs: Manual changes

For the uncommon items: Go through the tree and remove sccs tags that
didn't fit any nice pattern. If in the neighborhood, other SCM tags were
removed when they were detritis of

sccs: Manual changes

For the uncommon items: Go through the tree and remove sccs tags that
didn't fit any nice pattern. If in the neighborhood, other SCM tags were
removed when they were detritis of long-ago CVS somehow in the early
mists of the project. Some adjacent copyrights stringswere removed (they
duplicated the copyright notices in the file). This also removed
non-standard formations of omission of SCCS tags (usually by adding an
extra #if 0 somewhere.

After this commit, a number of strings tagged with the 'what' @(#)
prefix remain, but they are primarily copyright notices.

Sponsored by: Netflix

show more ...


# f2f73fa7 23-Sep-2023 John Baldwin <jhb@FreeBSD.org>

factor: Remove an empty #ifdef __FBSDID clause


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 27234ad6 28-May-2023 Enji Cooper <ngie@FreeBSD.org>

Fix the build post-dcf5d5603b3af8

I didn't compile test the prior code before committing.

MFC after: 1 week
MFC with: dcf5d5603b3af831002caa7b2f64aec8bda14071


# dcf5d560 27-May-2023 Enji Cooper <ngie@FreeBSD.org>

Reduce ifdef soup by adding pre-3.0 compat support

This change creates a static inline function, BN_check_prime, for
pre-3.0 use which is implemented with the previous (1.1) compatible call
under th

Reduce ifdef soup by adding pre-3.0 compat support

This change creates a static inline function, BN_check_prime, for
pre-3.0 use which is implemented with the previous (1.1) compatible call
under the covers, `BN_is_prime_ex`.

The `nchecks` parameter value is maintained, even though it has no
noticable behavior change, given that the documentation clearly states
that at least 64 or 128 rounds are executed on the backend, depending on
how many bits there are in the given number being factored out.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40305

show more ...


# 537cd766 27-May-2023 Enji Cooper <ngie@FreeBSD.org>

factor: support OpenSSL 3

This change ports the BN APIs to an OpenSSL 3 compatible set of APIs.

This removes the need for requesting OpenSSL 1.1 compatible APIs.

MFC after: 1 week
Reviewed by: ema

factor: support OpenSSL 3

This change ports the BN APIs to an OpenSSL 3 compatible set of APIs.

This removes the need for requesting OpenSSL 1.1 compatible APIs.

MFC after: 1 week
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D40298

show more ...


# 52647325 12-Jan-2020 Garance A Drosehn <gad@FreeBSD.org>

Fix the way 'factor' behaves when using OpenSSL to match the description
of how it works when not compiled with OpenSSL.

Also, allow users to specify a hexadecimal number by using a prefix of
'0x'.

Fix the way 'factor' behaves when using OpenSSL to match the description
of how it works when not compiled with OpenSSL.

Also, allow users to specify a hexadecimal number by using a prefix of
'0x'. Before this, users could only specify a hexadecimal value if that
value included a hex digit ('a'-'f') in the value.

PR: 243136
Submitted by: Steve Kargl
Reviewed by: gad
MFC after: 3 weeks

show more ...


# c6879c6c 23-Oct-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r339015 through r339669.


# 1da7787f 09-Oct-2018 Glen Barber <gjb@FreeBSD.org>

Merge the remainder of the projects/openssl111 branch to head.

- Update OpenSSL to version 1.1.1.
- Update Kerberos/Heimdal API for OpenSSL 1.1.1 compatibility.
- Bump __FreeBSD_version.

Approved b

Merge the remainder of the projects/openssl111 branch to head.

- Update OpenSSL to version 1.1.1.
- Update Kerberos/Heimdal API for OpenSSL 1.1.1 compatibility.
- Bump __FreeBSD_version.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

show more ...


# 3ce33da6 19-Sep-2018 Jung-uk Kim <jkim@FreeBSD.org>

Make factor(6) buildable.


# 5b31cc94 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

sccs: Manual changes

For the uncommon items: Go through the tree and remove sccs tags that
didn't fit any nice pattern. If in the neighborhood, other SCM tags were
removed when they were detritis of

sccs: Manual changes

For the uncommon items: Go through the tree and remove sccs tags that
didn't fit any nice pattern. If in the neighborhood, other SCM tags were
removed when they were detritis of long-ago CVS somehow in the early
mists of the project. Some adjacent copyrights stringswere removed (they
duplicated the copyright notices in the file). This also removed
non-standard formations of omission of SCCS tags (usually by adding an
extra #if 0 somewhere.

After this commit, a number of strings tagged with the 'what' @(#)
prefix remain, but they are primarily copyright notices.

Sponsored by: Netflix

show more ...


# f2f73fa7 23-Sep-2023 John Baldwin <jhb@FreeBSD.org>

factor: Remove an empty #ifdef __FBSDID clause


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 27234ad6 28-May-2023 Enji Cooper <ngie@FreeBSD.org>

Fix the build post-dcf5d5603b3af8

I didn't compile test the prior code before committing.

MFC after: 1 week
MFC with: dcf5d5603b3af831002caa7b2f64aec8bda14071


# dcf5d560 27-May-2023 Enji Cooper <ngie@FreeBSD.org>

Reduce ifdef soup by adding pre-3.0 compat support

This change creates a static inline function, BN_check_prime, for
pre-3.0 use which is implemented with the previous (1.1) compatible call
under th

Reduce ifdef soup by adding pre-3.0 compat support

This change creates a static inline function, BN_check_prime, for
pre-3.0 use which is implemented with the previous (1.1) compatible call
under the covers, `BN_is_prime_ex`.

The `nchecks` parameter value is maintained, even though it has no
noticable behavior change, given that the documentation clearly states
that at least 64 or 128 rounds are executed on the backend, depending on
how many bits there are in the given number being factored out.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40305

show more ...


# 537cd766 27-May-2023 Enji Cooper <ngie@FreeBSD.org>

factor: support OpenSSL 3

This change ports the BN APIs to an OpenSSL 3 compatible set of APIs.

This removes the need for requesting OpenSSL 1.1 compatible APIs.

MFC after: 1 week
Reviewed by: ema

factor: support OpenSSL 3

This change ports the BN APIs to an OpenSSL 3 compatible set of APIs.

This removes the need for requesting OpenSSL 1.1 compatible APIs.

MFC after: 1 week
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D40298

show more ...


# 52647325 12-Jan-2020 Garance A Drosehn <gad@FreeBSD.org>

Fix the way 'factor' behaves when using OpenSSL to match the description
of how it works when not compiled with OpenSSL.

Also, allow users to specify a hexadecimal number by using a prefix of
'0x'.

Fix the way 'factor' behaves when using OpenSSL to match the description
of how it works when not compiled with OpenSSL.

Also, allow users to specify a hexadecimal number by using a prefix of
'0x'. Before this, users could only specify a hexadecimal value if that
value included a hex digit ('a'-'f') in the value.

PR: 243136
Submitted by: Steve Kargl
Reviewed by: gad
MFC after: 3 weeks

show more ...


# c6879c6c 23-Oct-2018 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r339015 through r339669.


# 1da7787f 09-Oct-2018 Glen Barber <gjb@FreeBSD.org>

Merge the remainder of the projects/openssl111 branch to head.

- Update OpenSSL to version 1.1.1.
- Update Kerberos/Heimdal API for OpenSSL 1.1.1 compatibility.
- Bump __FreeBSD_version.

Approved b

Merge the remainder of the projects/openssl111 branch to head.

- Update OpenSSL to version 1.1.1.
- Update Kerberos/Heimdal API for OpenSSL 1.1.1 compatibility.
- Bump __FreeBSD_version.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

show more ...


# 3ce33da6 19-Sep-2018 Jung-uk Kim <jkim@FreeBSD.org>

Make factor(6) buildable.


# 6ae1554a 02-Oct-2015 Colin Percival <cperciva@FreeBSD.org>

Final step of eliminating the "games" distribution: Merge src/games
(or what's left of it, at least) into src/usr.bin.

This change will not be MFCed.

Discussed at: EuroBSDCon 2014
Committed from:

Final step of eliminating the "games" distribution: Merge src/games
(or what's left of it, at least) into src/usr.bin.

This change will not be MFCed.

Discussed at: EuroBSDCon 2014
Committed from: EuroBSDCon 2015

show more ...


# 4007b77e 27-Sep-2014 Sean Bruno <sbruno@FreeBSD.org>

Update factor for changes to types in primes, which is a dependency.

Fixes build-fail on mips32 introduced at 272207.


# 139df251 16-Dec-2011 Dimitry Andric <dim@FreeBSD.org>

In games/factor/factor.c, fix a warning about a format string not being
a literal.

MFC after: 1 week


# bf55df19 20-Dec-2010 Ulrich Spörlein <uqs@FreeBSD.org>

factor(6): Check return values of BN_* functions.

Coverity Prevent: CID 4862, 8771, 8772, 8773


# 38281fea 26-Nov-2009 Tony Finch <fanf@FreeBSD.org>

Fix a performance bug in factor(6).

Check if large factor is prime before applying Pollard's algorithm;
fixes "factor 2147483647111311". Increase base if p-1 algorithm
reaches 1; fixes "factor 9999

Fix a performance bug in factor(6).

Check if large factor is prime before applying Pollard's algorithm;
fixes "factor 2147483647111311". Increase base if p-1 algorithm
reaches 1; fixes "factor 99999999999991".

Testcases from David A Bagley <bagleyd@tux.org>.
Fixes from Joseph Myers <jsm@NetBSD.org>.
Problem rediscovered by an attempt to factor my phone number.

A few other incidental fixes: correct a couple of factually incorrect
comments; use ident string macros; move from 4-clause to 3-clause
BSD licence (University of California copyright).

Obtained from: NetBSD

show more ...


12