Commit 3cd1576
crypto: preserve OpenSSL errors from KDF failures
The ncrypto KDF helpers cleared the OpenSSL error queue on return, and
the traits insert their own message, which makes DeriveBitsJob skip
errors->Capture(). Argon2, HKDF, PBKDF2 and scrypt failures were
therefore bare Errors with no code and no opensslErrorStack.
Drop the guard, which DeriveBitsJob already provides, and capture
before inserting since Capture() clears the store.
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: #64776
Backport-PR-URL: #65087
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent 74b3023 commit 3cd1576
3 files changed
Lines changed: 35 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2642 | 2642 | | |
2643 | 2643 | | |
2644 | 2644 | | |
2645 | | - | |
2646 | | - | |
2647 | 2645 | | |
2648 | 2646 | | |
2649 | 2647 | | |
| |||
2714 | 2712 | | |
2715 | 2713 | | |
2716 | 2714 | | |
2717 | | - | |
2718 | | - | |
2719 | 2715 | | |
2720 | 2716 | | |
2721 | 2717 | | |
| |||
2742 | 2738 | | |
2743 | 2739 | | |
2744 | 2740 | | |
2745 | | - | |
2746 | | - | |
2747 | 2741 | | |
2748 | 2742 | | |
2749 | 2743 | | |
| |||
2775 | 2769 | | |
2776 | 2770 | | |
2777 | 2771 | | |
2778 | | - | |
2779 | | - | |
2780 | 2772 | | |
2781 | 2773 | | |
2782 | 2774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | | - | |
44 | | - | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
| |||
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
53 | | - | |
54 | | - | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| |||
0 commit comments