aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/n2_core.c
Commit message (Collapse)AuthorAgeFilesLines
* n2_crypto: Add HMAC support.David S. Miller2010-05-251-4/+206
| | | | | | | One note is that, unlike with non-HMAC hashes, we can't support hmac(sha224) using the HMAC_SHA256 opcode. Signed-off-by: David S. Miller <davem@davemloft.net>
* n2_crypto: Make ahash parameterization explicit.David S. Miller2010-05-251-117/+99
| | | | | | | | | | All of the ahash ->digest() ops do essentially the same thing, just using different parameters. So instead, have a single n2_hash_async_digest() and use an n2_ahash_alg container that provides the parameters. Signed-off-by: David S. Miller <davem@davemloft.net>
* n2_crypto: Log algorithm success/failure in kernel log.David S. Miller2010-05-251-0/+6
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* n2_crypto: Kill n2_base_ctx and helpers.David S. Miller2010-05-251-14/+1
| | | | | | Unused, and we'll do this via the request context. Signed-off-by: David S. Miller <davem@davemloft.net>
* n2_crypto: Plumb fallback ahash requests properly.David S. Miller2010-05-251-47/+48
| | | | | | | | | | | | | Do this by putting the async fallback request at the end of an n2 specific ahash request context, then properly adjusting the request private size in our ahash ->cra_init(). We also need to put the writable state bits into the n2 request private instead of the n2 cra_ctx. With help from Herbert Xu. Signed-off-by: David S. Miller <davem@davemloft.net>
* n2_crypto: Fix MAU kmem_cache name.David S. Miller2010-05-251-1/+1
| | | | | | Both the CWQ and MAU caches unintentionally had that same name. Signed-off-by: David S. Miller <davem@davemloft.net>
* n2_crypto: Fix build after of_device/of_platform_driver changes.David S. Miller2010-05-251-10/+16
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* crypto: n2 - Add Niagara2 crypto driverDavid S. Miller2010-05-191-0/+2083
Current deficiencies: 1) No HMAC hash support yet. 2) Although the algs are registered as ASYNC they always run synchronously. Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>