@@ -356,10 +356,10 @@ static void omap_sham_copy_ready_hash(struct ahash_request *req)
356
356
357
357
if (big_endian )
358
358
for (i = 0 ; i < d ; i ++ )
359
- hash [ i ] = be32_to_cpup ((__be32 * )in + i );
359
+ put_unaligned ( be32_to_cpup ((__be32 * )in + i ), & hash [ i ] );
360
360
else
361
361
for (i = 0 ; i < d ; i ++ )
362
- hash [ i ] = le32_to_cpup ((__le32 * )in + i );
362
+ put_unaligned ( le32_to_cpup ((__le32 * )in + i ), & hash [ i ] );
363
363
}
364
364
365
365
static void omap_sham_write_ctrl_omap2 (struct omap_sham_dev * dd , size_t length ,
@@ -1435,7 +1435,6 @@ static struct ahash_engine_alg algs_sha1_md5[] = {
1435
1435
CRYPTO_ALG_NEED_FALLBACK ,
1436
1436
.cra_blocksize = SHA1_BLOCK_SIZE ,
1437
1437
.cra_ctxsize = sizeof (struct omap_sham_ctx ),
1438
- .cra_alignmask = OMAP_ALIGN_MASK ,
1439
1438
.cra_module = THIS_MODULE ,
1440
1439
.cra_init = omap_sham_cra_init ,
1441
1440
.cra_exit = omap_sham_cra_exit ,
@@ -1458,7 +1457,6 @@ static struct ahash_engine_alg algs_sha1_md5[] = {
1458
1457
CRYPTO_ALG_NEED_FALLBACK ,
1459
1458
.cra_blocksize = SHA1_BLOCK_SIZE ,
1460
1459
.cra_ctxsize = sizeof (struct omap_sham_ctx ),
1461
- .cra_alignmask = OMAP_ALIGN_MASK ,
1462
1460
.cra_module = THIS_MODULE ,
1463
1461
.cra_init = omap_sham_cra_init ,
1464
1462
.cra_exit = omap_sham_cra_exit ,
@@ -1483,7 +1481,6 @@ static struct ahash_engine_alg algs_sha1_md5[] = {
1483
1481
.cra_blocksize = SHA1_BLOCK_SIZE ,
1484
1482
.cra_ctxsize = sizeof (struct omap_sham_ctx ) +
1485
1483
sizeof (struct omap_sham_hmac_ctx ),
1486
- .cra_alignmask = OMAP_ALIGN_MASK ,
1487
1484
.cra_module = THIS_MODULE ,
1488
1485
.cra_init = omap_sham_cra_sha1_init ,
1489
1486
.cra_exit = omap_sham_cra_exit ,
@@ -1508,7 +1505,6 @@ static struct ahash_engine_alg algs_sha1_md5[] = {
1508
1505
.cra_blocksize = SHA1_BLOCK_SIZE ,
1509
1506
.cra_ctxsize = sizeof (struct omap_sham_ctx ) +
1510
1507
sizeof (struct omap_sham_hmac_ctx ),
1511
- .cra_alignmask = OMAP_ALIGN_MASK ,
1512
1508
.cra_module = THIS_MODULE ,
1513
1509
.cra_init = omap_sham_cra_md5_init ,
1514
1510
.cra_exit = omap_sham_cra_exit ,
@@ -1535,7 +1531,6 @@ static struct ahash_engine_alg algs_sha224_sha256[] = {
1535
1531
CRYPTO_ALG_NEED_FALLBACK ,
1536
1532
.cra_blocksize = SHA224_BLOCK_SIZE ,
1537
1533
.cra_ctxsize = sizeof (struct omap_sham_ctx ),
1538
- .cra_alignmask = OMAP_ALIGN_MASK ,
1539
1534
.cra_module = THIS_MODULE ,
1540
1535
.cra_init = omap_sham_cra_init ,
1541
1536
.cra_exit = omap_sham_cra_exit ,
@@ -1558,7 +1553,6 @@ static struct ahash_engine_alg algs_sha224_sha256[] = {
1558
1553
CRYPTO_ALG_NEED_FALLBACK ,
1559
1554
.cra_blocksize = SHA256_BLOCK_SIZE ,
1560
1555
.cra_ctxsize = sizeof (struct omap_sham_ctx ),
1561
- .cra_alignmask = OMAP_ALIGN_MASK ,
1562
1556
.cra_module = THIS_MODULE ,
1563
1557
.cra_init = omap_sham_cra_init ,
1564
1558
.cra_exit = omap_sham_cra_exit ,
@@ -1583,7 +1577,6 @@ static struct ahash_engine_alg algs_sha224_sha256[] = {
1583
1577
.cra_blocksize = SHA224_BLOCK_SIZE ,
1584
1578
.cra_ctxsize = sizeof (struct omap_sham_ctx ) +
1585
1579
sizeof (struct omap_sham_hmac_ctx ),
1586
- .cra_alignmask = OMAP_ALIGN_MASK ,
1587
1580
.cra_module = THIS_MODULE ,
1588
1581
.cra_init = omap_sham_cra_sha224_init ,
1589
1582
.cra_exit = omap_sham_cra_exit ,
@@ -1608,7 +1601,6 @@ static struct ahash_engine_alg algs_sha224_sha256[] = {
1608
1601
.cra_blocksize = SHA256_BLOCK_SIZE ,
1609
1602
.cra_ctxsize = sizeof (struct omap_sham_ctx ) +
1610
1603
sizeof (struct omap_sham_hmac_ctx ),
1611
- .cra_alignmask = OMAP_ALIGN_MASK ,
1612
1604
.cra_module = THIS_MODULE ,
1613
1605
.cra_init = omap_sham_cra_sha256_init ,
1614
1606
.cra_exit = omap_sham_cra_exit ,
@@ -1634,7 +1626,6 @@ static struct ahash_engine_alg algs_sha384_sha512[] = {
1634
1626
CRYPTO_ALG_NEED_FALLBACK ,
1635
1627
.cra_blocksize = SHA384_BLOCK_SIZE ,
1636
1628
.cra_ctxsize = sizeof (struct omap_sham_ctx ),
1637
- .cra_alignmask = OMAP_ALIGN_MASK ,
1638
1629
.cra_module = THIS_MODULE ,
1639
1630
.cra_init = omap_sham_cra_init ,
1640
1631
.cra_exit = omap_sham_cra_exit ,
@@ -1657,7 +1648,6 @@ static struct ahash_engine_alg algs_sha384_sha512[] = {
1657
1648
CRYPTO_ALG_NEED_FALLBACK ,
1658
1649
.cra_blocksize = SHA512_BLOCK_SIZE ,
1659
1650
.cra_ctxsize = sizeof (struct omap_sham_ctx ),
1660
- .cra_alignmask = OMAP_ALIGN_MASK ,
1661
1651
.cra_module = THIS_MODULE ,
1662
1652
.cra_init = omap_sham_cra_init ,
1663
1653
.cra_exit = omap_sham_cra_exit ,
@@ -1682,7 +1672,6 @@ static struct ahash_engine_alg algs_sha384_sha512[] = {
1682
1672
.cra_blocksize = SHA384_BLOCK_SIZE ,
1683
1673
.cra_ctxsize = sizeof (struct omap_sham_ctx ) +
1684
1674
sizeof (struct omap_sham_hmac_ctx ),
1685
- .cra_alignmask = OMAP_ALIGN_MASK ,
1686
1675
.cra_module = THIS_MODULE ,
1687
1676
.cra_init = omap_sham_cra_sha384_init ,
1688
1677
.cra_exit = omap_sham_cra_exit ,
@@ -1707,7 +1696,6 @@ static struct ahash_engine_alg algs_sha384_sha512[] = {
1707
1696
.cra_blocksize = SHA512_BLOCK_SIZE ,
1708
1697
.cra_ctxsize = sizeof (struct omap_sham_ctx ) +
1709
1698
sizeof (struct omap_sham_hmac_ctx ),
1710
- .cra_alignmask = OMAP_ALIGN_MASK ,
1711
1699
.cra_module = THIS_MODULE ,
1712
1700
.cra_init = omap_sham_cra_sha512_init ,
1713
1701
.cra_exit = omap_sham_cra_exit ,
0 commit comments