Re: [RFC] Drop md5sum, crc32 and sha1 cmds in favor of hash cmd

2024-02-08 Thread Igor Opaniuk
Hello Tom, Peter, On Wed, Feb 7, 2024 at 3:16 PM Peter Robinson wrote: > > On Wed, 7 Feb 2024 at 13:48, Tom Rini wrote: > > > > On Wed, Feb 07, 2024 at 02:00:16PM +0100, Igor Opaniuk wrote: > > > Hello, > > > > > > I was playing a bit with different hash functions recently, and > > > it turned o

Re: [RFC] Drop md5sum, crc32 and sha1 cmds in favor of hash cmd

2024-02-07 Thread Peter Robinson
On Wed, 7 Feb 2024 at 13:48, Tom Rini wrote: > > On Wed, Feb 07, 2024 at 02:00:16PM +0100, Igor Opaniuk wrote: > > Hello, > > > > I was playing a bit with different hash functions recently, and > > it turned out that md5sum, crc32, sha1 cmds just duplicate > > what is already covered by generic `h

Re: [RFC] Drop md5sum, crc32 and sha1 cmds in favor of hash cmd

2024-02-07 Thread Tom Rini
On Wed, Feb 07, 2024 at 03:10:01PM +0100, Igor Opaniuk wrote: > Hi Tom, > > On Wed, Feb 7, 2024 at 2:48 PM Tom Rini wrote: > > > > On Wed, Feb 07, 2024 at 02:00:16PM +0100, Igor Opaniuk wrote: > > > Hello, > > > > > > I was playing a bit with different hash functions recently, and > > > it turned

Re: [RFC] Drop md5sum, crc32 and sha1 cmds in favor of hash cmd

2024-02-07 Thread Igor Opaniuk
Hi Tom, On Wed, Feb 7, 2024 at 2:48 PM Tom Rini wrote: > > On Wed, Feb 07, 2024 at 02:00:16PM +0100, Igor Opaniuk wrote: > > Hello, > > > > I was playing a bit with different hash functions recently, and > > it turned out that md5sum, crc32, sha1 cmds just duplicate > > what is already covered by

Re: [RFC] Drop md5sum, crc32 and sha1 cmds in favor of hash cmd

2024-02-07 Thread Tom Rini
On Wed, Feb 07, 2024 at 02:00:16PM +0100, Igor Opaniuk wrote: > Hello, > > I was playing a bit with different hash functions recently, and > it turned out that md5sum, crc32, sha1 cmds just duplicate > what is already covered by generic `hash` cmd. > > => sha1 0x6000 0x200 > sha1 for 6000

[RFC] Drop md5sum, crc32 and sha1 cmds in favor of hash cmd

2024-02-07 Thread Igor Opaniuk
Hello, I was playing a bit with different hash functions recently, and it turned out that md5sum, crc32, sha1 cmds just duplicate what is already covered by generic `hash` cmd. => sha1 0x6000 0x200 sha1 for 6000 ... 61ff ==> 4ff5ffc91d00a95155518b920f46e2483d0e1437 => hash sha1 0x6000