Commit f3e444e
tls: get cipher_name from cipher_desc in tls_set_sw_offload
tls_cipher_desc also contains the algorithm name needed by
crypto_alloc_aead, use it.
Finally, use get_cipher_desc to check if the cipher_type coming from
userspace is valid, and remove the cipher_type switch.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/53d021d80138aa125a9cef4468aa5ce531975a7b.1692977948.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 48dfad2 commit f3e444e
1 file changed
Lines changed: 4 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2591 | 2591 | | |
2592 | 2592 | | |
2593 | 2593 | | |
2594 | | - | |
| 2594 | + | |
2595 | 2595 | | |
2596 | 2596 | | |
2597 | 2597 | | |
| |||
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
2650 | | - | |
2651 | | - | |
2652 | | - | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
2659 | | - | |
2660 | | - | |
2661 | | - | |
2662 | | - | |
2663 | | - | |
2664 | | - | |
2665 | | - | |
2666 | | - | |
2667 | | - | |
2668 | | - | |
2669 | | - | |
2670 | | - | |
2671 | | - | |
| 2650 | + | |
| 2651 | + | |
2672 | 2652 | | |
2673 | 2653 | | |
2674 | 2654 | | |
2675 | 2655 | | |
2676 | | - | |
2677 | 2656 | | |
2678 | 2657 | | |
2679 | 2658 | | |
| |||
2721 | 2700 | | |
2722 | 2701 | | |
2723 | 2702 | | |
2724 | | - | |
| 2703 | + | |
2725 | 2704 | | |
2726 | 2705 | | |
2727 | 2706 | | |
| |||
0 commit comments