.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Cryptographic API. |
---|
3 | 4 | * |
---|
.. | .. |
---|
14 | 15 | * |
---|
15 | 16 | * Adapted for Linux Kernel Crypto by Aaron Grothe |
---|
16 | 17 | * ajgrothe@yahoo.com, February 22, 2005 |
---|
17 | | - * |
---|
18 | | - * This program is free software; you can redistribute it and/or modify |
---|
19 | | - * it under the terms of the GNU General Public License as published by |
---|
20 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
21 | | - * (at your option) any later version. |
---|
22 | | - * |
---|
23 | 18 | */ |
---|
24 | 19 | #include <crypto/internal/hash.h> |
---|
25 | 20 | #include <linux/init.h> |
---|
.. | .. |
---|
560 | 555 | __le32 *le32p; |
---|
561 | 556 | u32 t, msb, lsb; |
---|
562 | 557 | |
---|
563 | | - tgr192_update(desc, NULL, 0); /* flush */ ; |
---|
| 558 | + tgr192_update(desc, NULL, 0); /* flush */ |
---|
564 | 559 | |
---|
565 | 560 | msb = 0; |
---|
566 | 561 | t = tctx->nblocks; |
---|
.. | .. |
---|
588 | 583 | while (tctx->count < 64) { |
---|
589 | 584 | tctx->hash[tctx->count++] = 0; |
---|
590 | 585 | } |
---|
591 | | - tgr192_update(desc, NULL, 0); /* flush */ ; |
---|
| 586 | + tgr192_update(desc, NULL, 0); /* flush */ |
---|
592 | 587 | memset(tctx->hash, 0, 56); /* fill next block with zeroes */ |
---|
593 | 588 | } |
---|
594 | 589 | /* append the 64 bit count */ |
---|
.. | .. |
---|
635 | 630 | .final = tgr192_final, |
---|
636 | 631 | .descsize = sizeof(struct tgr192_ctx), |
---|
637 | 632 | .base = { |
---|
638 | | - .cra_name = "tgr192", |
---|
639 | | - .cra_blocksize = TGR192_BLOCK_SIZE, |
---|
640 | | - .cra_module = THIS_MODULE, |
---|
| 633 | + .cra_name = "tgr192", |
---|
| 634 | + .cra_driver_name = "tgr192-generic", |
---|
| 635 | + .cra_blocksize = TGR192_BLOCK_SIZE, |
---|
| 636 | + .cra_module = THIS_MODULE, |
---|
641 | 637 | } |
---|
642 | 638 | }, { |
---|
643 | 639 | .digestsize = TGR160_DIGEST_SIZE, |
---|
.. | .. |
---|
646 | 642 | .final = tgr160_final, |
---|
647 | 643 | .descsize = sizeof(struct tgr192_ctx), |
---|
648 | 644 | .base = { |
---|
649 | | - .cra_name = "tgr160", |
---|
650 | | - .cra_blocksize = TGR192_BLOCK_SIZE, |
---|
651 | | - .cra_module = THIS_MODULE, |
---|
| 645 | + .cra_name = "tgr160", |
---|
| 646 | + .cra_driver_name = "tgr160-generic", |
---|
| 647 | + .cra_blocksize = TGR192_BLOCK_SIZE, |
---|
| 648 | + .cra_module = THIS_MODULE, |
---|
652 | 649 | } |
---|
653 | 650 | }, { |
---|
654 | 651 | .digestsize = TGR128_DIGEST_SIZE, |
---|
.. | .. |
---|
657 | 654 | .final = tgr128_final, |
---|
658 | 655 | .descsize = sizeof(struct tgr192_ctx), |
---|
659 | 656 | .base = { |
---|
660 | | - .cra_name = "tgr128", |
---|
661 | | - .cra_blocksize = TGR192_BLOCK_SIZE, |
---|
662 | | - .cra_module = THIS_MODULE, |
---|
| 657 | + .cra_name = "tgr128", |
---|
| 658 | + .cra_driver_name = "tgr128-generic", |
---|
| 659 | + .cra_blocksize = TGR192_BLOCK_SIZE, |
---|
| 660 | + .cra_module = THIS_MODULE, |
---|
663 | 661 | } |
---|
664 | 662 | } }; |
---|
665 | 663 | |
---|
.. | .. |
---|
677 | 675 | MODULE_ALIAS_CRYPTO("tgr160"); |
---|
678 | 676 | MODULE_ALIAS_CRYPTO("tgr128"); |
---|
679 | 677 | |
---|
680 | | -module_init(tgr192_mod_init); |
---|
| 678 | +subsys_initcall(tgr192_mod_init); |
---|
681 | 679 | module_exit(tgr192_mod_fini); |
---|
682 | 680 | |
---|
683 | 681 | MODULE_LICENSE("GPL"); |
---|