@super-protocol/addons-tee 1.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/bindings/amd-sev-snp-napi-rs/amd-sev-snp-napi-rs.linux-x64-gnu.node +0 -0
  2. package/bindings/nvidia-native/README.md +174 -0
  3. package/bindings/nvidia-native/build/Release/libnvat.so.1.1.0 +0 -0
  4. package/bindings/nvidia-native/build/Release/nvidia_native.node +0 -0
  5. package/bindings/nvidia-native/package.json +26 -0
  6. package/bindings/nvidia-native/postinstall.js +40 -0
  7. package/bindings/sgx-native/build/Release/sgx_native.node +0 -0
  8. package/bindings/usr/lib/node_modules/node-addon-api/node_api.Makefile +6 -0
  9. package/bindings/usr/lib/node_modules/node-addon-api/nothing.target.mk +159 -0
  10. package/bindings/utils/virtee/libsev.so +0 -0
  11. package/bindings/utils/virtee/snpguest +0 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +3 -2
  14. package/dist/nvidia-native-module/nvidia-attestation.d.ts +146 -0
  15. package/dist/nvidia-native-module/nvidia-attestation.js +374 -0
  16. package/dist/nvidia-native-module/nvidia-debug-state-policy.rego +45 -0
  17. package/dist/nvidia-native-module/nvidia-detailed-policy.rego +205 -0
  18. package/package.json +4 -2
  19. package/.editorconfig +0 -15
  20. package/.eslintrc.json +0 -61
  21. package/.prettierignore +0 -3
  22. package/.prettierrc +0 -15
  23. package/bindings/amd-sev-snp-napi-rs/package-lock.json +0 -40
  24. package/bindings/sgx-native/package-lock.json +0 -23
  25. package/bindings/sp-sev/.github/auto_assign-issues.yml +0 -5
  26. package/bindings/sp-sev/.github/auto_assign.yml +0 -21
  27. package/bindings/sp-sev/.github/dependabot.yml +0 -6
  28. package/bindings/sp-sev/.github/workflows/dco.yml +0 -10
  29. package/bindings/sp-sev/.github/workflows/lint.yml +0 -56
  30. package/bindings/sp-sev/.github/workflows/test.yml +0 -215
  31. package/bindings/sp-sev/.rustfmt.toml +0 -2
  32. package/bindings/sp-sev/CODEOWNERS +0 -1
  33. package/bindings/sp-sev/Cargo.lock +0 -2461
  34. package/bindings/sp-sev/Cargo.toml +0 -80
  35. package/bindings/sp-sev/LICENSE +0 -201
  36. package/bindings/sp-sev/README.md +0 -82
  37. package/bindings/sp-sev/build.rs +0 -17
  38. package/bindings/sp-sev/docs/attestation/README.md +0 -239
  39. package/bindings/sp-sev/docs/attestation/certchain.dot +0 -14
  40. package/bindings/sp-sev/docs/attestation/certchain.dot.png +0 -0
  41. package/bindings/sp-sev/docs/attestation/prerequisites.md +0 -6
  42. package/bindings/sp-sev/docs/attestation/process.msc +0 -60
  43. package/bindings/sp-sev/docs/attestation/process.msc.png +0 -0
  44. package/bindings/sp-sev/docs/attestation/protections.md +0 -53
  45. package/bindings/sp-sev/package-version.py +0 -11
  46. package/bindings/sp-sev/tests/api.rs +0 -194
  47. package/bindings/sp-sev/tests/certs.rs +0 -142
  48. package/bindings/sp-sev/tests/certs_data/cert_chain_milan +0 -74
  49. package/bindings/sp-sev/tests/certs_data/cert_chain_turin +0 -74
  50. package/bindings/sp-sev/tests/certs_data/report_milan.hex +0 -1
  51. package/bindings/sp-sev/tests/certs_data/vcek_milan.der +0 -0
  52. package/bindings/sp-sev/tests/certs_data/vcek_turin.der +0 -0
  53. package/bindings/sp-sev/tests/guest.rs +0 -57
  54. package/bindings/sp-sev/tests/id-block.rs +0 -172
  55. package/bindings/sp-sev/tests/measurement/ovmf_AmdSev_suffix.bin +0 -0
  56. package/bindings/sp-sev/tests/measurement/ovmf_OvmfX64_suffix.bin +0 -0
  57. package/bindings/sp-sev/tests/measurement/test_auth_block.bin +0 -0
  58. package/bindings/sp-sev/tests/measurement/test_auth_key.pem +0 -6
  59. package/bindings/sp-sev/tests/measurement/test_auth_sig.bin +0 -0
  60. package/bindings/sp-sev/tests/measurement/test_id_key.pem +0 -6
  61. package/bindings/sp-sev/tests/measurement/test_id_sig.bin +0 -0
  62. package/bindings/sp-sev/tests/measurement.rs +0 -510
  63. package/bindings/sp-sev/tests/naples/ark.cert.bad +0 -0
  64. package/bindings/sp-sev/tests/naples/ark.cert.sig +0 -0
  65. package/bindings/sp-sev/tests/naples/ark.rs +0 -38
  66. package/bindings/sp-sev/tests/naples/ask.rs +0 -29
  67. package/bindings/sp-sev/tests/naples/cek.cert +0 -0
  68. package/bindings/sp-sev/tests/naples/cek.rs +0 -30
  69. package/bindings/sp-sev/tests/naples/mod.rs +0 -20
  70. package/bindings/sp-sev/tests/naples/oca.cert +0 -0
  71. package/bindings/sp-sev/tests/naples/oca.rs +0 -45
  72. package/bindings/sp-sev/tests/naples/pdh.cert +0 -0
  73. package/bindings/sp-sev/tests/naples/pdh.rs +0 -28
  74. package/bindings/sp-sev/tests/naples/pek.cert +0 -0
  75. package/bindings/sp-sev/tests/naples/pek.rs +0 -32
  76. package/bindings/sp-sev/tests/rome/ark.rs +0 -33
  77. package/bindings/sp-sev/tests/rome/ask.rs +0 -29
  78. package/bindings/sp-sev/tests/rome/cek.cert +0 -0
  79. package/bindings/sp-sev/tests/rome/cek.rs +0 -29
  80. package/bindings/sp-sev/tests/rome/mod.rs +0 -16
  81. package/bindings/sp-sev/tests/rome/oca.cert +0 -0
  82. package/bindings/sp-sev/tests/rome/oca.rs +0 -45
  83. package/bindings/sp-sev/tests/rome/pdh.cert +0 -0
  84. package/bindings/sp-sev/tests/rome/pdh.rs +0 -28
  85. package/bindings/sp-sev/tests/rome/pek.cert +0 -0
  86. package/bindings/sp-sev/tests/rome/pek.rs +0 -32
  87. package/bindings/sp-sev/tests/session.rs +0 -39
  88. package/bindings/sp-sev/tests/sev_launch.rs +0 -120
  89. package/bindings/sp-sev/tests/snp_launch.rs +0 -108
  90. package/dto/src/AmdSevSnp.proto +0 -31
  91. package/dto/src/Compression.proto +0 -11
  92. package/dto/src/Hash.proto +0 -6
  93. package/dto/src/OrderReport.proto +0 -21
  94. package/dto/src/TRI.proto +0 -22
  95. package/dto/src/TeeDeviceInfo.proto +0 -46
package/.eslintrc.json DELETED
@@ -1,61 +0,0 @@
1
- {
2
- "env": {
3
- "node": true,
4
- "es2021": true
5
- },
6
- "extends": [
7
- "eslint:recommended",
8
- "plugin:@typescript-eslint/recommended",
9
- "plugin:prettier/recommended"
10
- ],
11
- "globals": {
12
- "Atomics": "readonly",
13
- "SharedArrayBuffer": "readonly"
14
- },
15
- "parser": "@typescript-eslint/parser",
16
- "parserOptions": {
17
- "project": ["./tsconfig.json"]
18
- },
19
- "plugins": [
20
- "@typescript-eslint"
21
- ],
22
- "rules": {
23
- "@typescript-eslint/ban-ts-comment": ["warn"],
24
- "@typescript-eslint/no-var-requires": ["off"],
25
- "@typescript-eslint/no-unused-vars": ["off"],
26
- "@typescript-eslint/interface-name-prefix": ["off"],
27
- "@typescript-eslint/no-empty-function": ["warn"],
28
- "comma-dangle": [
29
- "error",
30
- {
31
- "arrays": "always-multiline",
32
- "objects": "always-multiline",
33
- "imports": "always-multiline",
34
- "exports": "always-multiline",
35
- "functions": "always-multiline"
36
- }
37
- ],
38
- "linebreak-style": [
39
- "error",
40
- "unix"
41
- ],
42
- "newline-before-return": "warn",
43
- "no-cond-assign": "error",
44
- "no-console": "warn",
45
- "no-mixed-operators": "warn",
46
- "no-constant-condition": [
47
- "error", {
48
- "checkLoops": false
49
- }],
50
- "no-extra-boolean-cast": "off",
51
- "no-multiple-empty-lines": ["error", {
52
- "max": 1,
53
- "maxEOF": 0
54
- }],
55
- "object-curly-spacing": ["error", "always"],
56
- "object-property-newline": ["error", {
57
- "allowAllPropertiesOnSameLine": false
58
- }],
59
- "semi": ["error", "always"]
60
- }
61
- }
package/.prettierignore DELETED
@@ -1,3 +0,0 @@
1
- dist/**/*
2
- bindings/**/*
3
- **/gen/*
package/.prettierrc DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "singleQuote": false,
3
- "trailingComma": "all",
4
- "tabWidth": 4,
5
- "printWidth": 120,
6
- "useTabs": false,
7
- "overrides": [
8
- {
9
- "files": "*.ts",
10
- "options": {
11
- "parser": "typescript"
12
- }
13
- }
14
- ]
15
- }
@@ -1,40 +0,0 @@
1
- {
2
- "name": "amd-sev-snp-napi-rs",
3
- "version": "1.0.0",
4
- "lockfileVersion": 2,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "amd-sev-snp-napi-rs",
9
- "version": "1.0.0",
10
- "license": "MIT",
11
- "devDependencies": {
12
- "@napi-rs/cli": "^2.18.4"
13
- },
14
- "engines": {
15
- "node": ">= 16"
16
- }
17
- },
18
- "node_modules/@napi-rs/cli": {
19
- "version": "2.18.4",
20
- "dev": true,
21
- "license": "MIT",
22
- "bin": {
23
- "napi": "scripts/index.js"
24
- },
25
- "engines": {
26
- "node": ">= 10"
27
- },
28
- "funding": {
29
- "type": "github",
30
- "url": "https://github.com/sponsors/Brooooooklyn"
31
- }
32
- }
33
- },
34
- "dependencies": {
35
- "@napi-rs/cli": {
36
- "version": "2.18.4",
37
- "dev": true
38
- }
39
- }
40
- }
@@ -1,23 +0,0 @@
1
- {
2
- "name": "sgx_native_example",
3
- "version": "0.2.2",
4
- "lockfileVersion": 1,
5
- "requires": true,
6
- "dependencies": {
7
- "binding": {
8
- "version": "3.0.3",
9
- "resolved": "https://registry.npmjs.org/binding/-/binding-3.0.3.tgz",
10
- "integrity": "sha512-HUCRFQLX8GdByCZpPFxEFeFreFe+GJdi75xgJ2R2bsfkYVWdlsPqCApb4RE/RbV6f8ri/uwC2DJZUX8V/PNNxQ=="
11
- },
12
- "bindings": {
13
- "version": "1.2.1",
14
- "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz",
15
- "integrity": "sha1-FK1hE4EtLTfXLme0ystLtyZQXxE="
16
- },
17
- "node-addon-api": {
18
- "version": "3.2.1",
19
- "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.2.1.tgz",
20
- "integrity": "sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A=="
21
- }
22
- }
23
- }
@@ -1,5 +0,0 @@
1
- addAssignees: true
2
-
3
- assignees:
4
- - tylerfanelli
5
- - larrydewey
@@ -1,21 +0,0 @@
1
- # Set to true to add reviewers to pull requests
2
- addReviewers: true
3
-
4
- # Set to true to add assignees to pull requests
5
- addAssignees: true
6
-
7
- # A list of reviewers to be added to pull requests (GitHub user name)
8
- reviewers:
9
- - DGonzalezVillal
10
- - tylerfanelli
11
- - larrydewey
12
- - ryansavino
13
-
14
- # A list of keywords to be skipped the process that add reviewers if pull requests include it
15
- skipKeywords:
16
- - wip
17
- - WIP
18
-
19
- # A number of reviewers added to the pull request
20
- # Set 0 to add all the reviewers (default: 0)
21
- numberOfReviewers: 2
@@ -1,6 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "cargo"
4
- directory: "/"
5
- schedule:
6
- interval: "weekly"
@@ -1,10 +0,0 @@
1
- name: Sign-off Check
2
-
3
- on:
4
- pull_request:
5
-
6
- jobs:
7
- check:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: KineticCafe/actions-dco@v1
@@ -1,56 +0,0 @@
1
- on: [push, pull_request]
2
- name: lint
3
- jobs:
4
- fmt:
5
- name: cargo fmt
6
- runs-on: ubuntu-latest
7
- steps:
8
- - uses: actions/checkout@v4
9
- - uses: dtolnay/rust-toolchain@stable
10
- with:
11
- components: rustfmt
12
- toolchain: 1.85.0
13
- - run: cargo fmt --all -- --check
14
-
15
- clippy-openssl:
16
- name: cargo clippy openssl
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: actions/checkout@v4
20
- - uses: dtolnay/rust-toolchain@stable
21
- with:
22
- components: clippy
23
- toolchain: 1.85.0
24
- - run: cargo clippy --features=openssl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -D warnings -D clippy::style
25
-
26
- clippy-crypto_nossl:
27
- name: cargo clippy crypto_nossl
28
- runs-on: ubuntu-latest
29
- steps:
30
- - uses: actions/checkout@v4
31
- - uses: dtolnay/rust-toolchain@stable
32
- with:
33
- components: clippy
34
- toolchain: 1.85.0
35
- - run: cargo clippy --features=crypto_nossl,hw_tests,dangerous_hw_tests --all-targets -- -D clippy::all -D unused_imports -D warnings -D clippy::style
36
-
37
- readme:
38
- name: cargo rdme
39
- runs-on: ubuntu-latest
40
- steps:
41
- - uses: actions/checkout@v4
42
- - uses: dtolnay/rust-toolchain@stable
43
- with:
44
- toolchain: nightly
45
- - run: |
46
- cargo install cargo-rdme
47
- cargo rdme --check
48
-
49
- check-spdx-headers:
50
- runs-on: ubuntu-latest
51
- steps:
52
- - name: checkout
53
- uses: actions/checkout@v4
54
- - uses: enarx/spdx@master
55
- with:
56
- licenses: Apache-2.0
@@ -1,215 +0,0 @@
1
- on: [push, pull_request]
2
- name: test
3
- jobs:
4
-
5
- sw-sev-only:
6
- name: sw sev only ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
7
- runs-on: ${{ matrix.runner }}
8
- steps:
9
- - uses: actions/checkout@v4
10
- - uses: dtolnay/rust-toolchain@stable
11
- with:
12
- toolchain: ${{ matrix.toolchain }}
13
- - run: cargo test ${{ matrix.profile.flag }} --no-default-features --features=${{ matrix.features }}
14
-
15
- strategy:
16
- fail-fast: false
17
- matrix:
18
- runner:
19
- - ubuntu-latest
20
- - macos-13
21
- toolchain:
22
- - 1.85.0
23
- - stable
24
- profile:
25
- - name: debug
26
- - name: release
27
- flag: --release
28
- features:
29
- - sev
30
-
31
- sw-sev-openssl-only:
32
- name: sw sev openssl only ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
33
- runs-on: ${{ matrix.runner }}
34
- steps:
35
- - uses: actions/checkout@v4
36
- - uses: dtolnay/rust-toolchain@stable
37
- with:
38
- toolchain: ${{ matrix.toolchain }}
39
- - run: cargo test ${{ matrix.profile.flag }} --no-default-features --features=${{ matrix.features }}
40
-
41
- strategy:
42
- fail-fast: false
43
- matrix:
44
- runner:
45
- - ubuntu-latest
46
- - macos-13
47
- toolchain:
48
- - 1.85.0
49
- - stable
50
- profile:
51
- - name: debug
52
- - name: release
53
- flag: --release
54
- features:
55
- - sev
56
- - openssl
57
-
58
- sw-sev-crypto_nossl-only:
59
- name: sw sev crypto_nossl only ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
60
- runs-on: ${{ matrix.runner }}
61
- steps:
62
- - uses: actions/checkout@v4
63
- - uses: dtolnay/rust-toolchain@stable
64
- with:
65
- toolchain: ${{ matrix.toolchain }}
66
- - run: cargo test ${{ matrix.profile.flag }} --no-default-features --features=${{ matrix.features }}
67
- strategy:
68
- fail-fast: false
69
- matrix:
70
- runner:
71
- - ubuntu-latest
72
- - macos-13
73
- - windows-latest
74
- toolchain:
75
- - 1.85.0
76
- - stable
77
- profile:
78
- - name: debug
79
- - name: release
80
- flag: --release
81
- features:
82
- - sev
83
- - crypto_nossl
84
-
85
- sw-snp-only:
86
- name: sw snp-only ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
87
- runs-on: ${{ matrix.runner }}
88
- steps:
89
- - uses: actions/checkout@v4
90
- - uses: dtolnay/rust-toolchain@stable
91
- with:
92
- toolchain: ${{ matrix.toolchain }}
93
- - run: cargo test ${{ matrix.profile.flag }} --no-default-features --features=${{ matrix.features }}
94
-
95
- strategy:
96
- fail-fast: false
97
- matrix:
98
- runner:
99
- - ubuntu-latest
100
- - macos-13
101
- toolchain:
102
- - 1.85.0
103
- - stable
104
- profile:
105
- - name: debug
106
- - name: release
107
- flag: --release
108
- features:
109
- - snp
110
-
111
- sw-snp-openssl-only:
112
- name: sw snp openssl only ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
113
- runs-on: ${{ matrix.runner }}
114
- steps:
115
- - uses: actions/checkout@v4
116
- - uses: dtolnay/rust-toolchain@stable
117
- with:
118
- toolchain: ${{ matrix.toolchain }}
119
- - run: cargo test ${{ matrix.profile.flag }} --no-default-features --features=${{ matrix.features }}
120
-
121
- strategy:
122
- fail-fast: false
123
- matrix:
124
- runner:
125
- - ubuntu-latest
126
- - macos-13
127
- toolchain:
128
- - 1.85.0
129
- - stable
130
- profile:
131
- - name: debug
132
- - name: release
133
- flag: --release
134
- features:
135
- - snp
136
- - openssl
137
-
138
- sw-snp-crypto_nossl-only:
139
- name: sw snp crypto_nossl only ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
140
- runs-on: ${{ matrix.runner }}
141
- steps:
142
- - uses: actions/checkout@v4
143
- - uses: dtolnay/rust-toolchain@stable
144
- with:
145
- toolchain: ${{ matrix.toolchain }}
146
- - run: cargo test ${{ matrix.profile.flag }} --no-default-features --features=${{ matrix.features }}
147
- strategy:
148
- fail-fast: false
149
- matrix:
150
- runner:
151
- - ubuntu-latest
152
- - macos-13
153
- - windows-latest
154
- toolchain:
155
- - 1.85.0
156
- - stable
157
- profile:
158
- - name: debug
159
- - name: release
160
- flag: --release
161
- features:
162
- - snp
163
- - crypto_nossl
164
-
165
- sw-openssl:
166
- name: sw openssl ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
167
- runs-on: ${{ matrix.runner }}
168
- steps:
169
- - uses: actions/checkout@v4
170
- - uses: dtolnay/rust-toolchain@stable
171
- with:
172
- toolchain: ${{ matrix.toolchain }}
173
- - run: cargo test ${{ matrix.profile.flag }} --features=${{ matrix.features }}
174
-
175
- strategy:
176
- fail-fast: false
177
- matrix:
178
- runner:
179
- - ubuntu-latest
180
- - macos-13
181
- toolchain:
182
- - 1.85.0
183
- - stable
184
- profile:
185
- - name: debug
186
- - name: release
187
- flag: --release
188
- features:
189
- - openssl
190
-
191
- sw-crypto_nossl:
192
- name: sw crypto_nossl ${{ matrix.runner }} ${{ matrix.toolchain }} ${{ matrix.profile.name }} ${{ matrix.features }}
193
- runs-on: ${{ matrix.runner }}
194
- steps:
195
- - uses: actions/checkout@v4
196
- - uses: dtolnay/rust-toolchain@stable
197
- with:
198
- toolchain: ${{ matrix.toolchain }}
199
- - run: cargo test ${{ matrix.profile.flag }} --features=${{ matrix.features }}
200
- strategy:
201
- fail-fast: false
202
- matrix:
203
- runner:
204
- - ubuntu-latest
205
- - macos-13
206
- - windows-latest
207
- toolchain:
208
- - 1.85.0
209
- - stable
210
- profile:
211
- - name: debug
212
- - name: release
213
- flag: --release
214
- features:
215
- - crypto_nossl
@@ -1,2 +0,0 @@
1
- edition = "2021"
2
- newline_style = "Unix"
@@ -1 +0,0 @@
1
- * @tylerfanelli @larrydewey @DGonzalezVillal