public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4 v3] Revise crypto documentation, deprecate DES, add --disable-crypt
@ 2018-05-06 17:52 Zack Weinberg
  2018-05-06 17:51 ` [PATCH 3/4] Deprecate DES encryption functions Zack Weinberg
                   ` (4 more replies)
  0 siblings, 5 replies; 29+ messages in thread
From: Zack Weinberg @ 2018-05-06 17:52 UTC (permalink / raw)
  To: libc-alpha; +Cc: carlos, fweimer, rj

As requested by Rical Jasan, this revision of the patchset
<https://sourceware.org/ml/libc-alpha/2018-04/msg00628.html> carefully
splits the documentation changes into one patch that just moves text
around, and another patch that changes text but doesn't move it.  I
have also made some more improvements to the documentation.  There are
no new changes to code.

Rical said:

> I have some concern over the creation of a whole chapter for "Obsolete
> Encryption".  I don't think that sets a desirable precedent for chapter
> topics.  I think combining the disparate sections on randomness is a
> good call, though.
>
> What do you think about continuing to use crypt.texi for crytographic
> topics and creating sections for "Obsolete Encryption" and "Random
> Number Generation" there (while otherwise keeping the rest of the
> changes, such as dropping "Legal Problems" and FIPS compliance, updating
> the description of crypt, etc.)?  "Password Handling" could likewise be
> made its own section.

I agree that "Obsolete Encryption" does not need to be its own
chapter; in this revision it goes back to being a subsection of
crypt.texi.  "Random Number Generation" is still a new independent
chapter.  This is because I want to put "Unpredictable Bytes" right
after "Pseudo-Random Number Generation", and it doesn't seem to make
sense to have that consolidated subtree be either with math.texi or
crypt.texi.

I am not sure whether I remembered to address all of your other
comments on the documentation changes, but I got the impression you
wanted to re-review it from scratch anyway after the split-up?

Zack Weinberg (4):
  Reorganize manual sections on cryptography and random numbers.
  Revise manual sections on cryptography and random numbers.
  Deprecate DES encryption functions.
  New configure option --disable-crypt.

 INSTALL                    |  11 +
 Makeconfig                 |   9 +-
 NEWS                       |  20 +
 config.make.in             |   1 +
 configure                  |  18 +
 configure.ac               |  11 +
 conform/Makefile           |  11 +-
 crypt/Makefile             |   5 +-
 crypt/crypt.h              |  22 +-
 elf/Makefile               |  27 +-
 elf/tst-linkall-static.c   |   4 +-
 manual/Makefile            |   2 +-
 manual/arith.texi          |   2 +-
 manual/crypt.texi          | 662 +++++++++++++-------------------
 manual/examples/genpass.c  |  38 +-
 manual/examples/testpass.c |  34 +-
 manual/install.texi        |  12 +
 manual/math.texi           | 586 +---------------------------
 manual/random.texi         | 754 +++++++++++++++++++++++++++++++++++++
 manual/string.texi         |   6 +-
 manual/terminal.texi       |  45 +++
 manual/time.texi           |   2 +-
 posix/unistd.h             |  15 +-
 stdlib/stdlib.h            |   9 +-
 sunrpc/Makefile            |   9 +
 sunrpc/rpc/des_crypt.h     |  11 +-
 26 files changed, 1282 insertions(+), 1044 deletions(-)
 create mode 100644 manual/random.texi

-- 
2.17.0

^ permalink raw reply	[flat|nested] 29+ messages in thread
* [PATCH 0/4 v3] libcrypt phaseout
@ 2018-05-21 17:39 Zack Weinberg
  2018-05-21 17:39 ` [PATCH 4/4] New configure option --disable-crypt Zack Weinberg
  0 siblings, 1 reply; 29+ messages in thread
From: Zack Weinberg @ 2018-05-21 17:39 UTC (permalink / raw)
  To: libc-alpha; +Cc: carlos, fweimer, rj, kukuk

Here comes another revision of the patchset to begin phasing out
libcrypt (and also improve the documentation for 'crypt'.)  Major
changes from the previous revision are:

 - Rather than just marking them deprecated, I have gone ahead and
   disallowed use of the DES encryption functions in new programs.
   The only reason I hadn't done that already was because 'setkey' and
   'encrypt' are still in POSIX; but the insecurity of DES is more
   important than that, and libxcrypt already took the plunge.
   Conveniently, this means all of the documentation of those
   functions can be dropped and I don't have to figure out how to
   explain the bizarro things that some of them do.

 - I changed my mind about consolidating the random number generation
   discussion.  "Unpredictable Bytes" now remains in crypt.texi and
   "Pseudo-Random Numbers" remains in math.texi.

 - I went back to using hardwired hashes in the testpass.c example,
   because that way the program actually works as a demo; also it
   allows me to show how the DES-based hash ignores all but the first
   eight characters of the input passphrase.

 - Terminology has been made consistent throughout the manual and the
   public headers: "passphrase", "user database", and "(one-way)
   hashing", not "password", "password database", or "encryption".

 - Lots more documentation improvements.

Zack Weinberg (4):
  Disallow use of DES encryption functions in new programs.
  Reorganize crypt.texi.
  Revise crypt.texi.
  New configure option --disable-crypt.

 INSTALL                     |  11 +
 Makeconfig                  |   9 +-
 NEWS                        |  25 ++
 config.make.in              |   1 +
 configure                   |  18 +
 configure.ac                |  11 +
 conform/Makefile            |  11 +-
 conform/data/stdlib.h-data  |   3 -
 conform/data/unistd.h-data  |   3 -
 crypt/Makefile              |   4 -
 crypt/Versions              |   3 +
 crypt/cert.c                |  29 ++
 crypt/crypt-entry.c         |  15 +-
 crypt/crypt.h               |  37 +-
 crypt/crypt_util.c          |   9 +
 elf/Makefile                |  27 +-
 elf/tst-linkall-static.c    |   4 +-
 inet/ruserpass.c            |   2 +-
 manual/contrib.texi         |   2 +-
 manual/crypt.texi           | 695 +++++++++++++-----------------------
 manual/examples/genpass.c   |  44 ++-
 manual/examples/mygetpass.c |   4 +-
 manual/examples/testpass.c  |  52 ++-
 manual/install.texi         |  12 +
 manual/intro.texi           |   1 -
 manual/memory.texi          |   2 +-
 manual/nss.texi             |  12 +-
 manual/socket.texi          |   4 +-
 manual/string.texi          |  82 ++---
 manual/terminal.texi        |  45 +++
 manual/users.texi           |  22 +-
 nscd/pwdcache.c             |   4 +-
 posix/unistd.h              |  19 +-
 pwd/pwd.h                   |  29 +-
 shadow/shadow.h             |  16 +-
 stdlib/stdlib.h             |   6 -
 sunrpc/Makefile             |   2 +-
 sunrpc/des_crypt.c          |   7 +-
 sunrpc/des_soft.c           |   2 +-
 39 files changed, 651 insertions(+), 633 deletions(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2018-06-28 18:52 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-06 17:52 [PATCH 0/4 v3] Revise crypto documentation, deprecate DES, add --disable-crypt Zack Weinberg
2018-05-06 17:51 ` [PATCH 3/4] Deprecate DES encryption functions Zack Weinberg
2018-05-08 14:33   ` Florian Weimer
2018-05-08 15:24     ` Zack Weinberg
2018-05-06 17:52 ` [PATCH 4/4] New configure option --disable-crypt Zack Weinberg
2018-05-08 15:00   ` Florian Weimer
2018-05-08 15:22     ` Zack Weinberg
2018-05-06 17:52 ` [PATCH 2/4] Revise manual sections on cryptography and random numbers Zack Weinberg
2018-05-08 14:23   ` Florian Weimer
2018-05-08 15:59     ` Zack Weinberg
2018-05-08 17:51       ` Florian Weimer
2018-05-09 11:36   ` Rical Jasan
2018-05-09 15:47     ` Joseph Myers
2018-05-06 17:52 ` [PATCH 1/4] Reorganize " Zack Weinberg
2018-05-08 13:29   ` Florian Weimer
2018-05-08 13:37     ` Zack Weinberg
2018-05-08 13:38       ` Florian Weimer
2018-05-09 11:36   ` Rical Jasan
2018-05-08 22:56 ` [PATCH 0/4 v3] Revise crypto documentation, deprecate DES, add --disable-crypt Rical Jasan
2018-05-21 17:39 [PATCH 0/4 v3] libcrypt phaseout Zack Weinberg
2018-05-21 17:39 ` [PATCH 4/4] New configure option --disable-crypt Zack Weinberg
2018-05-21 19:52   ` Joseph Myers
2018-05-21 22:07     ` Zack Weinberg
2018-05-21 22:34       ` Joseph Myers
2018-05-22  1:08         ` Zack Weinberg
2018-06-20 20:40         ` Florian Weimer
2018-06-20 22:48           ` Zack Weinberg
2018-06-21  9:31             ` Florian Weimer
2018-06-21  9:32               ` Florian Weimer
2018-06-28 18:52               ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).