Commit 088f2da
authored
sm2: fix compilation errors. (#1641)
Certain feature combinations in the sm2 crate currently cause
compilation errors.
This patch resolves the following issues:
1. dsa & pkcs8:
* Fixed a mismatch where `Signature::ALGORITHM_IDENTIFIER`
was gated behind `alloc`, even though the trait implementation
did not require it.
2. pke:
* Enabled the `pkcs8` feature by default when `pke` is active, as
it depends on `pkcs8` support from the `elliptic-curve` and
`der` crates.
* Ensured `alloc` is enabled for `pke`, as encryption/decryption
operations in `src/pke/decrypting.rs` and `encrypting.rs` return
`Vec<u8>`.
Cleaned up redundant feature gates in these files too.1 parent cba0364 commit 088f2da
3 files changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 63 | + | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
69 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| |||
0 commit comments