Commit 0237f75
committed
Prevent ClassCastException for v3 OpenPGP keys with non-RSA public keys
v3 and earlier OpenPGP keys can only use RSA as key algorithm.
This commit changes the behavior of BC to throw a PGPException instead of a ClassCastException when
encountering a malformed key.1 parent fe9de3e commit 0237f75
File tree
2 files changed
+8
-0
lines changed- pg/src/main/java/org/bouncycastle/openpgp/operator
- bc
- jcajce
2 files changed
+8
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
0 commit comments