<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/crypto/api.c, branch v2.6.23</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/crypto/api.c?h=v2.6.23</id>
<link rel='self' href='https://git.amat.us/linux/atom/crypto/api.c?h=v2.6.23'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2007-07-11T12:58:53Z</updated>
<entry>
<title>[CRYPTO] api: Wake up all waiters when larval completes</title>
<updated>2007-07-11T12:58:53Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2007-05-19T07:51:40Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fe3c5206adc5d7395828185ab73e9a522655b984'/>
<id>urn:sha1:fe3c5206adc5d7395828185ab73e9a522655b984</id>
<content type='text'>
Right now when a larval matures or when it dies of an error we
only wake up one waiter.  This would cause other waiters to timeout
unnecessarily.  This patch changes it to use complete_all to wake
up all waiters.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Read module pointer before freeing algorithm</title>
<updated>2007-05-19T04:51:00Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2007-05-19T04:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=da7cd59ab9c8ed233df4809f6c8c90c636f676c7'/>
<id>urn:sha1:da7cd59ab9c8ed233df4809f6c8c90c636f676c7</id>
<content type='text'>
The function crypto_mod_put first frees the algorithm and then drops
the reference to its module.  Unfortunately we read the module pointer
which after freeing the algorithm and that pointer sits inside the
object that we just freed.

So this patch reads the module pointer out before we free the object.

Thanks to Luca Tettamanti for reporting this.

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.amat.us/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>
<entry>
<title>[CRYPTO] api: Remove deprecated interface</title>
<updated>2007-02-06T22:21:00Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2007-01-26T23:05:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f1ddcaf3393b7a3871809b97fae90fac841a1f39'/>
<id>urn:sha1:f1ddcaf3393b7a3871809b97fae90fac841a1f39</id>
<content type='text'>
This patch removes the old cipher interface and related code.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Remove unused functions</title>
<updated>2006-12-07T02:38:54Z</updated>
<author>
<name>Adrian Bunk</name>
<email>bunk@stusta.de</email>
</author>
<published>2006-11-22T06:55:00Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cc44215eaaa5e4032946b962353526ae6c370c0e'/>
<id>urn:sha1:cc44215eaaa5e4032946b962353526ae6c370c0e</id>
<content type='text'>
This patch removes the following no longer used functions:
- api.c: crypto_alg_available()
- digest.c: crypto_digest_init()
- digest.c: crypto_digest_update()
- digest.c: crypto_digest_final()
- digest.c: crypto_digest_digest()

Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: fix crypto_alloc_base() return value</title>
<updated>2006-10-11T12:29:51Z</updated>
<author>
<name>Akinobu Mita</name>
<email>akinobu.mita@gmail.com</email>
</author>
<published>2006-10-11T12:29:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9765d262b8230b735c4b2815b041c09a00833cf1'/>
<id>urn:sha1:9765d262b8230b735c4b2815b041c09a00833cf1</id>
<content type='text'>
This patch makes crypto_alloc_base() return proper return value.

- If kzalloc() failure happens within __crypto_alloc_tfm(),
  crypto_alloc_base() returns NULL. But crypto_alloc_base()
  is supposed to return error code as pointer. So this patch
  makes it return -ENOMEM in that case.

- crypto_alloc_base() is suppose to return -EINTR, if it is
  interrupted by signal. But it may not return -EINTR.

Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Add crypto_comp and crypto_has_*</title>
<updated>2006-09-21T01:46:21Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-08-26T07:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=fce32d70ba834129b164c40c2d4260e5a7a7d850'/>
<id>urn:sha1:fce32d70ba834129b164c40c2d4260e5a7a7d850</id>
<content type='text'>
This patch adds the crypto_comp type to complete the compile-time checking
conversion.  The functions crypto_has_alg and crypto_has_cipher, etc. are
also added to replace crypto_alg_available.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Added crypto_type support</title>
<updated>2006-09-21T01:41:51Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-08-21T14:06:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e853c3cfa8cc24869ecd2526e589bcb176bc12e9'/>
<id>urn:sha1:e853c3cfa8cc24869ecd2526e589bcb176bc12e9</id>
<content type='text'>
This patch adds the crypto_type structure which will be used for all new
crypto algorithm types, beginning with block ciphers.

The primary purpose of this abstraction is to allow different crypto_type
objects for crypto algorithms of the same type, in particular, there will
be a different crypto_type objects for asynchronous algorithms.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Added crypto_alloc_base</title>
<updated>2006-09-21T01:41:50Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-07-30T01:53:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6d7d684d635ac5a345f075015f2c84169c111c6a'/>
<id>urn:sha1:6d7d684d635ac5a345f075015f2c84169c111c6a</id>
<content type='text'>
Up until now all crypto transforms have been of the same type, struct
crypto_tfm, regardless of whether they are ciphers, digests, or other
types.  As a result of that, we check the types at run-time before
each crypto operation.

This is rather cumbersome.  We could instead use different C types for
each crypto type to ensure that the correct types are used at compile
time.  That is, we would have crypto_cipher/crypto_digest instead of
just crypto_tfm.  The appropriate type would then be required for the
actual operations such as crypto_digest_digest.

Now that we have the type/mask fields when looking up algorithms, it
is easy to request for an algorithm of the precise type that the user
wants.  However, crypto_alloc_tfm currently does not expose these new
attributes.

This patch introduces the function crypto_alloc_base which will carry
these new parameters.  It will be renamed to crypto_alloc_tfm once
all existing users have been converted.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>[CRYPTO] api: Added asynchronous flag</title>
<updated>2006-09-21T01:41:49Z</updated>
<author>
<name>Herbert Xu</name>
<email>herbert@gondor.apana.org.au</email>
</author>
<published>2006-08-06T13:12:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f3f632d61ae9af85d436706ee8e33af1a7fb9c28'/>
<id>urn:sha1:f3f632d61ae9af85d436706ee8e33af1a7fb9c28</id>
<content type='text'>
This patch adds the asynchronous flag and changes all existing users to
only look up algorithms that are synchronous.

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