]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] api: Explain the comparison on larval cra_name
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 2 Oct 2007 14:27:29 +0000 (22:27 +0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:47 +0000 (16:55 -0700)
commit98d6770a5c7726eae1983f8cf1438c0a1b0ffc67
treef343b65876738ba5c0abd8de413a6b076a5af928
parent7efc75637cde2fbf5ec460e36481d73812f26bef
[CRYPTO] api: Explain the comparison on larval cra_name

This patch adds a comment to explain why we compare the cra_driver_name of
the algorithm being registered against the cra_name of a larval as opposed
to the cra_driver_name of the larval.

In fact larvals have only one name, cra_name which is the name that was
requested by the user.  The test here is simply trying to find out whether
the algorithm being registered can or can not satisfy the larval.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c