Re: [PATCH 00/15] Synchronize libcrypt and libmd with FreeBSD

2022-09-08 Thread Chris Johns
On 9/9/2022 12:29 am, Sebastian Huber wrote:
> On 08/09/2022 16:27, Joel Sherrill wrote:
>>
>> On Thu, Sep 8, 2022 at 9:26 AM Sebastian Huber
>> > > wrote:
>>
>>     On 08/09/2022 16:21, Joel Sherrill wrote:
>>  > Were there no updates to md4/md5 code in libmd? git blame shows
>>     md4.c as
>>  > having mostly no updates in 15 years.
>>
>>     These hashes are obsolete for cryptographic purposes.
>>
>>
>> But they are good checksums. And we have the code. What's the upstream for 
>> it?
> 
> I don't have time to do this right now.

I cannot see any documentation in the classic API guide on what we provide, what
we maintain and what users should use. Should we have a crypto section to help
explain these things?

Chris
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 00/15] Synchronize libcrypt and libmd with FreeBSD

2022-09-08 Thread Sebastian Huber

On 08/09/2022 16:27, Joel Sherrill wrote:


On Thu, Sep 8, 2022 at 9:26 AM Sebastian Huber 
> wrote:


On 08/09/2022 16:21, Joel Sherrill wrote:
 > Were there no updates to md4/md5 code in libmd? git blame shows
md4.c as
 > having mostly no updates in 15 years.

These hashes are obsolete for cryptographic purposes.


But they are good checksums. And we have the code. What's the upstream 
for it?


I don't have time to do this right now.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 00/15] Synchronize libcrypt and libmd with FreeBSD

2022-09-08 Thread Joel Sherrill
On Thu, Sep 8, 2022 at 9:26 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> On 08/09/2022 16:21, Joel Sherrill wrote:
> > Were there no updates to md4/md5 code in libmd? git blame shows md4.c as
> > having mostly no updates in 15 years.
>
> These hashes are obsolete for cryptographic purposes.
>

But they are good checksums. And we have the code. What's the upstream for
it?

--joel

>
> --
> embedded brains GmbH
> Herr Sebastian HUBER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: sebastian.hu...@embedded-brains.de
> phone: +49-89-18 94 741 - 16
> fax:   +49-89-18 94 741 - 08
>
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 00/15] Synchronize libcrypt and libmd with FreeBSD

2022-09-08 Thread Sebastian Huber

On 08/09/2022 16:21, Joel Sherrill wrote:
Were there no updates to md4/md5 code in libmd? git blame shows md4.c as 
having mostly no updates in 15 years.


These hashes are obsolete for cryptographic purposes.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH 00/15] Synchronize libcrypt and libmd with FreeBSD

2022-09-08 Thread Joel Sherrill
Were there no updates to md4/md5 code in libmd? git blame shows md4.c as
having mostly no updates in 15 years.

--joel

On Thu, Sep 8, 2022 at 8:27 AM Sebastian Huber <
sebastian.hu...@embedded-brains.de> wrote:

> Alan Somers (1):
>   Fix C++ includability of crypto headers with static array sizes
>
> Allan Jude (2):
>   Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c
>   Implement SHA-512 truncated (224 and 256 bits)
>
> Colin Percival (1):
>   Retune SHA2 code for improved performance on CPUs
>
> Conrad Meyer (2):
>   crypto routines: Hint minimum buffer sizes to the compiler
>   Implement SHA2-224 submode of SHA2-256
>
> Pedro F. Giffuni (2):
>   General further adoption of SPDX licensing ID tags.
>   lib: further adoption of SPDX licensing ID tags.
>
> Sebastian Huber (4):
>   libtests/sha: Add tests for SHA224
>   libtests/sha: Add tests for SHA384
>   libtests/sha: Add tests for SHA512-224
>   libtests/sha: Add tests for SHA512-256
>
> Xin LI (3):
>   libmd: Always erase context in _Final method,
>   Get rid of unused variables.
>   libcrypt: There is no need to clear message digest
>
>  cpukit/include/sha224.h|  62 ++
>  cpukit/include/sha256.h|  16 +-
>  cpukit/include/sha384.h|  61 ++
>  cpukit/include/sha512.h|  17 +-
>  cpukit/include/sha512t.h   |  68 ++
>  cpukit/libcrypt/crypt-md5.c|   2 +
>  cpukit/libcrypt/crypt-sha256.c |  15 +-
>  cpukit/libcrypt/crypt-sha512.c |  15 +-
>  cpukit/libcrypt/misc.c |   4 +-
>  cpukit/libmd/sha256c.c | 230 
>  cpukit/libmd/sha512c.c | 377 +++--
>  testsuites/libtests/sha/init.c | 215 ++-
>  12 files changed, 843 insertions(+), 239 deletions(-)
>  create mode 100644 cpukit/include/sha224.h
>  create mode 100644 cpukit/include/sha384.h
>  create mode 100644 cpukit/include/sha512t.h
>
> --
> 2.35.3
>
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

[PATCH 00/15] Synchronize libcrypt and libmd with FreeBSD

2022-09-08 Thread Sebastian Huber
Alan Somers (1):
  Fix C++ includability of crypto headers with static array sizes

Allan Jude (2):
  Replace sys/crypto/sha2/sha2.c with lib/libmd/sha512c.c
  Implement SHA-512 truncated (224 and 256 bits)

Colin Percival (1):
  Retune SHA2 code for improved performance on CPUs

Conrad Meyer (2):
  crypto routines: Hint minimum buffer sizes to the compiler
  Implement SHA2-224 submode of SHA2-256

Pedro F. Giffuni (2):
  General further adoption of SPDX licensing ID tags.
  lib: further adoption of SPDX licensing ID tags.

Sebastian Huber (4):
  libtests/sha: Add tests for SHA224
  libtests/sha: Add tests for SHA384
  libtests/sha: Add tests for SHA512-224
  libtests/sha: Add tests for SHA512-256

Xin LI (3):
  libmd: Always erase context in _Final method,
  Get rid of unused variables.
  libcrypt: There is no need to clear message digest

 cpukit/include/sha224.h|  62 ++
 cpukit/include/sha256.h|  16 +-
 cpukit/include/sha384.h|  61 ++
 cpukit/include/sha512.h|  17 +-
 cpukit/include/sha512t.h   |  68 ++
 cpukit/libcrypt/crypt-md5.c|   2 +
 cpukit/libcrypt/crypt-sha256.c |  15 +-
 cpukit/libcrypt/crypt-sha512.c |  15 +-
 cpukit/libcrypt/misc.c |   4 +-
 cpukit/libmd/sha256c.c | 230 
 cpukit/libmd/sha512c.c | 377 +++--
 testsuites/libtests/sha/init.c | 215 ++-
 12 files changed, 843 insertions(+), 239 deletions(-)
 create mode 100644 cpukit/include/sha224.h
 create mode 100644 cpukit/include/sha384.h
 create mode 100644 cpukit/include/sha512t.h

-- 
2.35.3

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel