| .. | .. |
|---|
| 464 | 464 | { |
|---|
| 465 | 465 | struct anubis_ctx *ctx = crypto_tfm_ctx(tfm); |
|---|
| 466 | 466 | const __be32 *key = (const __be32 *)in_key; |
|---|
| 467 | | - u32 *flags = &tfm->crt_flags; |
|---|
| 468 | 467 | int N, R, i, r; |
|---|
| 469 | 468 | u32 kappa[ANUBIS_MAX_N]; |
|---|
| 470 | 469 | u32 inter[ANUBIS_MAX_N]; |
|---|
| .. | .. |
|---|
| 474 | 473 | case 32: case 36: case 40: |
|---|
| 475 | 474 | break; |
|---|
| 476 | 475 | default: |
|---|
| 477 | | - *flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; |
|---|
| 478 | 476 | return -EINVAL; |
|---|
| 479 | 477 | } |
|---|
| 480 | 478 | |
|---|
| .. | .. |
|---|
| 673 | 671 | |
|---|
| 674 | 672 | static struct crypto_alg anubis_alg = { |
|---|
| 675 | 673 | .cra_name = "anubis", |
|---|
| 674 | + .cra_driver_name = "anubis-generic", |
|---|
| 676 | 675 | .cra_flags = CRYPTO_ALG_TYPE_CIPHER, |
|---|
| 677 | 676 | .cra_blocksize = ANUBIS_BLOCK_SIZE, |
|---|
| 678 | 677 | .cra_ctxsize = sizeof (struct anubis_ctx), |
|---|
| .. | .. |
|---|
| 699 | 698 | crypto_unregister_alg(&anubis_alg); |
|---|
| 700 | 699 | } |
|---|
| 701 | 700 | |
|---|
| 702 | | -module_init(anubis_mod_init); |
|---|
| 701 | +subsys_initcall(anubis_mod_init); |
|---|
| 703 | 702 | module_exit(anubis_mod_fini); |
|---|
| 704 | 703 | |
|---|
| 705 | 704 | MODULE_LICENSE("GPL"); |
|---|