Repository navigation
Commit ab827fb
crypto: picoxcell - Simplify and harden key parsing
Use the common helper function crypto_authenc_extractkeys() for key
parsing. Also ensure the auth key won't overflow the hash_ctx buffer.
Cc: Jamie Iles <jamie@jamieiles.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>1 parent 5690278 commit ab827fb
1 file changed
Lines changed: 8 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
| 498 | + | |
501 | 499 | | |
502 | 500 | | |
503 | | - | |
| 501 | + | |
504 | 502 | | |
505 | 503 | | |
506 | | - | |
| 504 | + | |
507 | 505 | | |
508 | 506 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
| 507 | + | |
524 | 508 | | |
525 | 509 | | |
526 | 510 | | |
527 | 511 | | |
528 | | - | |
| 512 | + | |
529 | 513 | | |
530 | | - | |
| 514 | + | |
531 | 515 | | |
532 | 516 | | |
533 | 517 | | |
534 | 518 | | |
535 | | - | |
536 | | - | |
| 519 | + | |
| 520 | + | |
537 | 521 | | |
538 | 522 | | |
539 | 523 | | |
| |||
0 commit comments