Re: [PATCH v0] Add SHA-3 hash algorithm

2013-04-03 Thread Jeff Garzik
On 10/03/2012 01:45 AM, Jeff Garzik wrote: Whee -- SHA-3 is out! I wanted to explore the new toy a bit, and so, here is a blatantly untested rough draft of SHA-3 kernel support. Why rough draft? Because answers to the questions below will inform a more polished version. Just to update

Re: [PATCH v0] Add SHA-3 hash algorithm

2013-04-03 Thread Jeff Garzik
On 10/03/2012 01:45 AM, Jeff Garzik wrote: Whee -- SHA-3 is out! I wanted to explore the new toy a bit, and so, here is a blatantly untested rough draft of SHA-3 kernel support. Why rough draft? Because answers to the questions below will inform a more polished version. Just to update

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread Jeff Garzik
On 10/03/2012 03:11 AM, Herbert Xu wrote: On Wed, Oct 03, 2012 at 02:53:27AM -0400, Jeff Garzik wrote: Maybe my patch is the best we can do in the current kernel, if dynamic digest size is not currently possible. Register "sha3_224", "sha3_256", ... as you describe, and wait for actual users

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread Herbert Xu
On Wed, Oct 03, 2012 at 02:53:27AM -0400, Jeff Garzik wrote: > > Maybe my patch is the best we can do in the current kernel, if > dynamic digest size is not currently possible. Register "sha3_224", > "sha3_256", ... as you describe, and wait for actual users to appear > with unsupported digest

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread Jeff Garzik
On 10/03/2012 02:06 AM, David Miller wrote: From: Jeff Garzik Date: Wed, 3 Oct 2012 01:45:42 -0400 1) tcrypt setup blatantly wrong. What is the best setup here? Define a separate entry for each digest length? Is there some special string descriptor format that is desired, like "sha3-256"

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread David Miller
From: Jeff Garzik Date: Wed, 3 Oct 2012 01:45:42 -0400 > 1) tcrypt setup blatantly wrong. What is the best setup here? Define a > separate entry for each digest length? Is there some special string > descriptor format that is desired, like "sha3-256" or "sha3(256)"? Good question. The base

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread David Miller
From: Jeff Garzik j...@garzik.org Date: Wed, 3 Oct 2012 01:45:42 -0400 1) tcrypt setup blatantly wrong. What is the best setup here? Define a separate entry for each digest length? Is there some special string descriptor format that is desired, like sha3-256 or sha3(256)? Good question.

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread Jeff Garzik
On 10/03/2012 02:06 AM, David Miller wrote: From: Jeff Garzik j...@garzik.org Date: Wed, 3 Oct 2012 01:45:42 -0400 1) tcrypt setup blatantly wrong. What is the best setup here? Define a separate entry for each digest length? Is there some special string descriptor format that is desired,

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread Herbert Xu
On Wed, Oct 03, 2012 at 02:53:27AM -0400, Jeff Garzik wrote: Maybe my patch is the best we can do in the current kernel, if dynamic digest size is not currently possible. Register sha3_224, sha3_256, ... as you describe, and wait for actual users to appear with unsupported digest sizes.

Re: [PATCH v0] Add SHA-3 hash algorithm

2012-10-03 Thread Jeff Garzik
On 10/03/2012 03:11 AM, Herbert Xu wrote: On Wed, Oct 03, 2012 at 02:53:27AM -0400, Jeff Garzik wrote: Maybe my patch is the best we can do in the current kernel, if dynamic digest size is not currently possible. Register sha3_224, sha3_256, ... as you describe, and wait for actual users to