diff options
| author | Tero Kristo <t-kristo@ti.com> | 2016-09-19 11:22:13 -0400 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-22 06:32:49 -0400 |
| commit | 744e686a446cb4667ad42c530d372fbbc963507b (patch) | |
| tree | 32e439ad37b3628514dbdc6945206c20c093be83 /drivers/crypto | |
| parent | 99a7ffffd5e85bb1e079752be51b67d5257b6a87 (diff) | |
crypto: omap-sham - align algorithms on word offset
OMAP HW generally expects data for DMA to be on word boundary, so make the
SHA driver inform crypto framework of the same preference.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
| -rw-r--r-- | drivers/crypto/omap-sham.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 74653c9f2d80..3f2bf98db54b 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c | |||
| @@ -1368,7 +1368,7 @@ static struct ahash_alg algs_sha1_md5[] = { | |||
| 1368 | CRYPTO_ALG_NEED_FALLBACK, | 1368 | CRYPTO_ALG_NEED_FALLBACK, |
| 1369 | .cra_blocksize = SHA1_BLOCK_SIZE, | 1369 | .cra_blocksize = SHA1_BLOCK_SIZE, |
| 1370 | .cra_ctxsize = sizeof(struct omap_sham_ctx), | 1370 | .cra_ctxsize = sizeof(struct omap_sham_ctx), |
| 1371 | .cra_alignmask = 0, | 1371 | .cra_alignmask = OMAP_ALIGN_MASK, |
| 1372 | .cra_module = THIS_MODULE, | 1372 | .cra_module = THIS_MODULE, |
| 1373 | .cra_init = omap_sham_cra_init, | 1373 | .cra_init = omap_sham_cra_init, |
| 1374 | .cra_exit = omap_sham_cra_exit, | 1374 | .cra_exit = omap_sham_cra_exit, |
| @@ -1467,7 +1467,7 @@ static struct ahash_alg algs_sha224_sha256[] = { | |||
| 1467 | CRYPTO_ALG_NEED_FALLBACK, | 1467 | CRYPTO_ALG_NEED_FALLBACK, |
| 1468 | .cra_blocksize = SHA224_BLOCK_SIZE, | 1468 | .cra_blocksize = SHA224_BLOCK_SIZE, |
| 1469 | .cra_ctxsize = sizeof(struct omap_sham_ctx), | 1469 | .cra_ctxsize = sizeof(struct omap_sham_ctx), |
| 1470 | .cra_alignmask = 0, | 1470 | .cra_alignmask = OMAP_ALIGN_MASK, |
| 1471 | .cra_module = THIS_MODULE, | 1471 | .cra_module = THIS_MODULE, |
| 1472 | .cra_init = omap_sham_cra_init, | 1472 | .cra_init = omap_sham_cra_init, |
| 1473 | .cra_exit = omap_sham_cra_exit, | 1473 | .cra_exit = omap_sham_cra_exit, |
| @@ -1489,7 +1489,7 @@ static struct ahash_alg algs_sha224_sha256[] = { | |||
| 1489 | CRYPTO_ALG_NEED_FALLBACK, | 1489 | CRYPTO_ALG_NEED_FALLBACK, |
| 1490 | .cra_blocksize = SHA256_BLOCK_SIZE, | 1490 | .cra_blocksize = SHA256_BLOCK_SIZE, |
| 1491 | .cra_ctxsize = sizeof(struct omap_sham_ctx), | 1491 | .cra_ctxsize = sizeof(struct omap_sham_ctx), |
| 1492 | .cra_alignmask = 0, | 1492 | .cra_alignmask = OMAP_ALIGN_MASK, |
| 1493 | .cra_module = THIS_MODULE, | 1493 | .cra_module = THIS_MODULE, |
| 1494 | .cra_init = omap_sham_cra_init, | 1494 | .cra_init = omap_sham_cra_init, |
| 1495 | .cra_exit = omap_sham_cra_exit, | 1495 | .cra_exit = omap_sham_cra_exit, |
| @@ -1562,7 +1562,7 @@ static struct ahash_alg algs_sha384_sha512[] = { | |||
| 1562 | CRYPTO_ALG_NEED_FALLBACK, | 1562 | CRYPTO_ALG_NEED_FALLBACK, |
| 1563 | .cra_blocksize = SHA384_BLOCK_SIZE, | 1563 | .cra_blocksize = SHA384_BLOCK_SIZE, |
| 1564 | .cra_ctxsize = sizeof(struct omap_sham_ctx), | 1564 | .cra_ctxsize = sizeof(struct omap_sham_ctx), |
| 1565 | .cra_alignmask = 0, | 1565 | .cra_alignmask = OMAP_ALIGN_MASK, |
| 1566 | .cra_module = THIS_MODULE, | 1566 | .cra_module = THIS_MODULE, |
| 1567 | .cra_init = omap_sham_cra_init, | 1567 | .cra_init = omap_sham_cra_init, |
| 1568 | .cra_exit = omap_sham_cra_exit, | 1568 | .cra_exit = omap_sham_cra_exit, |
| @@ -1584,7 +1584,7 @@ static struct ahash_alg algs_sha384_sha512[] = { | |||
| 1584 | CRYPTO_ALG_NEED_FALLBACK, | 1584 | CRYPTO_ALG_NEED_FALLBACK, |
| 1585 | .cra_blocksize = SHA512_BLOCK_SIZE, | 1585 | .cra_blocksize = SHA512_BLOCK_SIZE, |
| 1586 | .cra_ctxsize = sizeof(struct omap_sham_ctx), | 1586 | .cra_ctxsize = sizeof(struct omap_sham_ctx), |
| 1587 | .cra_alignmask = 0, | 1587 | .cra_alignmask = OMAP_ALIGN_MASK, |
| 1588 | .cra_module = THIS_MODULE, | 1588 | .cra_module = THIS_MODULE, |
| 1589 | .cra_init = omap_sham_cra_init, | 1589 | .cra_init = omap_sham_cra_init, |
| 1590 | .cra_exit = omap_sham_cra_exit, | 1590 | .cra_exit = omap_sham_cra_exit, |
