Commit 347d8ee
Port AKV, MST, and AAS extension packs with zero-copy adaptation (#188)
* feat(native): Azure Key Vault extension pack with zero-copy adaptation
Port cose_sign1_azure_key_vault and cose_sign1_azure_key_vault_ffi from
native_ports branch, adapted for zero-copy architecture:
- CoseHeaderValue::Bytes/Text use ArcSlice/ArcStr (.into() conversions)
- CoseSign1Message field access via methods (.payload()/.signature())
- Clippy fix: remove redundant struct update syntax
- FFI Cargo.toml: workspace edition/license, description, test = false
- C/C++ headers: azure_key_vault.h and azure_key_vault.hpp
- rustfmt applied to all source and test files
119 AKV tests pass, 6805 workspace total, 0 failures.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* chore: A+ quality fixes for Azure Key Vault extension pack
- Replace Mutex .unwrap() with proper error propagation in akv_signing_key.rs
- Add // SAFETY: comments to all 28 unsafe blocks in FFI crate
- Add description field to main Cargo.toml
- Normalize FFI Cargo.toml to brace notation for workspace fields
- Add @param/@return Doxygen to 4 trust policy builder C header functions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* feat(native): MST transparency extension pack with zero-copy adaptation
Port cose_sign1_transparent_mst, code_transparency_client, and
cose_sign1_transparent_mst_ffi from native_ports, adapted for zero-copy:
- LazyHeaderMap: .headers()?.alg()/.kid() instead of direct field access
- CoseSign1Message: .payload()/.signature() method access
- CoseHeaderValue::Bytes/Text use ArcSlice/ArcStr (.into() conversions)
- Removed unstable str_as_str feature usage
- C/C++ headers: mst.h and mst.hpp projections
3 crates added, 56 files, 499 MST tests pass, 7395 workspace total.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Port Azure Artifact Signing extension pack with clippy fixes
- Port AAS crate, client sub-crate, and FFI crate from native_ports
- Fix clippy: too_many_arguments, collapsible if-let, manual Default impl
- Standardize all 3 Cargo.toml files (workspace edition/license, descriptions)
- Add C/C++ projection headers
- All AAS tests passing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* A+ quality fixes for MST and AAS extension packs
- Add SAFETY comments to all unsafe blocks in MST and AAS FFI crates
- Replace .unwrap() with .expect() in non-test code (verify.rs, pack.rs, signing_service.rs)
- Add @param/@return Doxygen tags to 14 MST trust policy builder functions in mst.h
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix rustfmt formatting in verify.rs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix CI: add PqcJwk import and time to dependency allowlist
- Gate PqcJwk import with #[cfg(feature = 'pqc')] in jwk_verifier.rs
- Add time crate to [crate.client] in allowed-dependencies.toml
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Jeromy Statia (from Dev Box) <jstatia@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1c7f17c commit 347d8ee
145 files changed
Lines changed: 33438 additions & 17 deletions
File tree
- native
- c_pp/include/cose/sign1/extension_packs
- c/include/cose/sign1/extension_packs
- rust
- extension_packs
- azure_artifact_signing
- client
- src
- tests
- ffi
- src
- tests
- src
- signing
- validation
- tests
- azure_key_vault
- ffi
- src
- tests
- src
- common
- signing
- validation
- tests
- mst
- client
- src
- tests
- examples
- ffi
- src
- tests
- src
- signing
- validation
- testdata
- tests
- primitives/crypto/openssl/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
Lines changed: 201 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | | - | |
8 | 12 | | |
| 13 | + | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
14 | | - | |
15 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
16 | 211 | | |
17 | 212 | | |
18 | 213 | | |
19 | 214 | | |
20 | 215 | | |
21 | | - | |
| 216 | + | |
0 commit comments