<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux/crypto/hash.c, branch stable</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-linux/atom/crypto/hash.c?h=stable</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-linux/atom/crypto/hash.c?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/'/>
<updated>2009-10-19T03:53:37Z</updated>
<entry>
<title>crypto: hash - Remove legacy hash/digest code</title>
<updated>2009-10-19T03:53:37Z</updated>
<author>
<name>Benjamin Gilbert</name>
<email>bgilbert@cs.cmu.edu</email>
</author>
<published>2009-10-19T03:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=2141b6309b1fce535329c195cb5e5274a4c84ebc'/>
<id>urn:sha1:2141b6309b1fce535329c195cb5e5274a4c84ebc</id>
<content type='text'>
6941c3a0 disabled compilation of the legacy digest code but didn't
actually remove it.  Rectify this.  Also, remove the crypto_hash_type
extern declaration from algapi.h now that the struct is gone.

Signed-off-by: Benjamin Gilbert &lt;bgilbert@cs.cmu.edu&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hash - Move ahash functions into crypto/hash.h</title>
<updated>2008-07-10T12:35:18Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2008-07-10T08:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=18e33e6d5cc0495826f5245777cd267732815e01'/>
<id>urn:sha1:18e33e6d5cc0495826f5245777cd267732815e01</id>
<content type='text'>
All new crypto interfaces should go into individual files as much
as possible in order to ensure that crypto.h does not collapse under
its own weight.

This patch moves the ahash code into crypto/hash.h and crypto/internal/hash.h
respectively.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hash - Removed vestigial ahash fields</title>
<updated>2008-07-10T12:35:18Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2008-07-07T12:54:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=166247f46a9c866e6f7f7d2212be875fb82212a1'/>
<id>urn:sha1:166247f46a9c866e6f7f7d2212be875fb82212a1</id>
<content type='text'>
The base field in ahash_tfm appears to have been cut-n-pasted from
ablkcipher.  It isn't needed here at all.  Similarly, the info field
in ahash_request also appears to have originated from its cipher
counter-part and is vestigial.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: hash - Fixed digest size check</title>
<updated>2008-07-10T12:35:17Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2008-07-07T12:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=ca786dc738f4f583b57b1bba7a335b5e8233f4b0'/>
<id>urn:sha1:ca786dc738f4f583b57b1bba7a335b5e8233f4b0</id>
<content type='text'>
The digest size check on hash algorithms is incorrect.  It's
perfectly valid for hash algorithms to have a digest length
longer than their block size.  For example crc32c has a block
size of 1 and a digest size of 4.  Rather than having it lie
about its block size, this patch fixes the checks to do what
they really should which is to bound the digest size so that
code placing the digest on the stack continue to work.

HMAC however still needs to check this as it's only defined
for such algorithms.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] hash: Add asynchronous hash support</title>
<updated>2008-07-10T12:35:13Z</updated>
<author>
<name>Loc Ho</name>
<email>lho@amcc.com</email>
</author>
<published>2008-05-14T12:41:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=004a403c2e954734090a69aedc7f4f822bdcc142'/>
<id>urn:sha1:004a403c2e954734090a69aedc7f4f822bdcc142</id>
<content type='text'>
This patch adds asynchronous hash and digest support.

Signed-off-by: Loc Ho &lt;lho@amcc.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Add missing headers for setkey_unaligned</title>
<updated>2007-10-10T23:55:40Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2007-08-23T08:23:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=791b4d5f73cbc16ee532ebac5bd82d51524d4f99'/>
<id>urn:sha1:791b4d5f73cbc16ee532ebac5bd82d51524d4f99</id>
<content type='text'>
This patch ensures that kernel.h and slab.h are included for
the setkey_unaligned function.  It also breaks a couple of
long lines.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: fix writting into unallocated memory in setkey_aligned</title>
<updated>2007-08-06T07:33:56Z</updated>
<author>
<name>Sebastian Siewior</name>
<email>sebastian@breakpoint.cc</email>
</author>
<published>2007-08-03T12:33:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=06817176784f620984200dc5d7cbe16984f7b262'/>
<id>urn:sha1:06817176784f620984200dc5d7cbe16984f7b262</id>
<content type='text'>
setkey_unaligned() commited in ca7c39385ce1a7b44894a4b225a4608624e90730
overwrites unallocated memory in the following memset() because
I used the wrong buffer length.

Signed-off-by: Sebastian Siewior &lt;sebastian@breakpoint.cc&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Handle unaligned keys in setkey</title>
<updated>2007-07-11T12:58:54Z</updated>
<author>
<name>Sebastian Siewior</name>
<email>linux-crypto@ml.breakpoint.cc</email>
</author>
<published>2007-05-19T09:51:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=ca7c39385ce1a7b44894a4b225a4608624e90730'/>
<id>urn:sha1:ca7c39385ce1a7b44894a4b225a4608624e90730</id>
<content type='text'>
setkey() in {cipher,blkcipher,ablkcipher,hash}.c does not respect the
requested alignment by the algorithm. This patch fixes it. The extra
memory is allocated by kmalloc() with GFP_ATOMIC flag.

Signed-off-by: Sebastian Siewior &lt;linux-crypto@ml.breakpoint.cc&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Proc functions should be marked as unused</title>
<updated>2007-05-02T04:38:29Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-12-30T23:42:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=03f5d8cedb31deb558cd97095730cbc8bc54b12a'/>
<id>urn:sha1:03f5d8cedb31deb558cd97095730cbc8bc54b12a</id>
<content type='text'>
The proc functions were incorrectly marked as used rather than unused.
They may be unused if proc is disabled.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Allow multiple frontends per backend</title>
<updated>2007-02-06T22:21:01Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2007-01-24T09:50:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-linux/commit/?id=27d2a3300755387d2fec231d37944907ff992ce8'/>
<id>urn:sha1:27d2a3300755387d2fec231d37944907ff992ce8</id>
<content type='text'>
This patch adds support for multiple frontend types for each backend
algorithm by passing the type and mask through to the backend type
init function.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
