Commit e907277
tls: expand use of tls_cipher_desc in tls_sw_fallback_init
tls_sw_fallback_init already gets the key and tag size from
tls_cipher_desc. We can now also check that the cipher type is valid,
and stop hard-coding the algorithm name passed to crypto_alloc_aead.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Link: https://lore.kernel.org/r/c8c94b8fcafbfb558e09589c1f1ad48dbdf92f76.1692977948.git.sd@queasysnail.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent d2322cf commit e907277
1 file changed
Lines changed: 6 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | 475 | | |
477 | 476 | | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | 477 | | |
| 478 | + | |
| 479 | + | |
490 | 480 | | |
491 | 481 | | |
492 | | - | |
| 482 | + | |
493 | 483 | | |
494 | 484 | | |
495 | 485 | | |
496 | 486 | | |
497 | 487 | | |
498 | 488 | | |
499 | 489 | | |
500 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
501 | 493 | | |
502 | 494 | | |
503 | 495 | | |
| |||
0 commit comments