SGX DCAP quote verify for Python
This package provides a Python binding to the SGX Quote Verification Library (QVL), which is the reference implementation of ECDSA-based SGX quote verification. It allows you to verify ECDSA-based quotes generated by the Intel provided Quoting Enclave in Python.
Usage
import sgx_dcap_quote_verify
from pathlib import Path
from datetime import datetime
# You can download the trusted root CA in PEM format directly from Intel at :
# <https://certificates.trustedservices.intel.com/Intel_SGX_Provisioning_Certification_RootCA.pem>
trusted_root_ca_certificate = Path("path/to/root_ca_certificate.pem").read_text()
# Get the quote and the collateral from the service you want to attest
pck_certificate = Path("path/to/pck_certificate.pem").read_text()
pck_signing_chain = Path("path/to/pck_signing_chain.pem").read_text()
root_ca_crl = Path("/path/to/root_ca_crl.pem").read_text()
intermediate_ca_crl = Path("/path/to/intermediate_ca_crl.pem").read_text()
tcb_info = Path("/path/to/tcb_info.json").read_text()
tcb_signing_chain = Path("/path/to/tcb_signing_chain.pem").read_text()
quote = Path("/path/to/quote.dat").read_bytes()
qe_identity = Path("/path/to/qe_identity.json").read_text()
# Set the date used to check if the collateral (certificates,CRLs...) is still valid
# Except for test purposes it should be set to the current time as is done below
expiration_date = datetime.now()
# Use the package to check the validity of the quote
attestation_result = sgx_dcap_quote_verify.verify(
trusted_root_ca_certificate,
pck_certificate,
pck_signing_chain,
root_ca_crl,
intermediate_ca_crl,
tcb_info,
tcb_signing_chain,
quote,
qe_identity,
expiration_date,
)
assert attestation_result.ok
assert (
attestation_result.pck_certificate_status
== sgx_dcap_quote_verify.VerificationStatus.STATUS_OK
)
assert (
attestation_result.tcb_info_status
== sgx_dcap_quote_verify.VerificationStatus.STATUS_OK
)
assert (
attestation_result.qe_identity_status
== sgx_dcap_quote_verify.VerificationStatus.STATUS_OK
)
assert (
attestation_result.quote_status
== sgx_dcap_quote_verify.VerificationStatus.STATUS_OK
)
# The attestation result contains the report data, which includes the MR_ENCLAVE
print("mr_enclave =", attestation_result.enclave_report.mr_enclave)
Disclaimer : This package is not endorsed by Intel Corporation. It is provided as is, use it at your own risk.
License
The source code of the binding is provided under Apache-2.0 license.
This software also uses the SGX Quote Verification Library, which is licensed under BSD license. Distribution of the software as a whole, including the external library, may be subject to the terms of the external library's license.
Metadata
Release files for sgx-dcap-quote-verify-python 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sgx-dcap-quote-verify-python-0.0.3.tar.gz | 705.4 kB | Without provenance | Details for sgx-dcap-quote-verify-python-0.0.3.tar.gz |
Built distributions (wheels)
Total release size: 34.9 MB
Release files / sgx-dcap-quote-verify-python-0.0.3.tar.gz
| Download URL | sgx-dcap-quote-verify-python-0.0.3.tar.gz |
|---|---|
| Size | 705.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
693cec50dad12e85235a7c9318406a22bec16b8327ed5a3cbf4a7727cf1c17a4
|
|
BLAKE2b-256 checksum How to use checksums |
6cda7323c1260c8d400a500c3d009358d35ba180884e81627b45b18c10095fc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
16d6241fc85fa3fd0cabbe65796fb4b22f0f0d0ca1c9e05680f66a2e066d361c
|
|
BLAKE2b-256 checksum How to use checksums |
52b219ef12b2369ea97d84b71978728ba67450fece29a621f45f4c30d281fe75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | PyPy 3.9 PyPy 3.9 7.3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
cd5d3d6b60aa9571e5ac0d309b980e86fd80af72a9d8b93fc021b2feca4b12fb
|
|
BLAKE2b-256 checksum How to use checksums |
41a0d58c7dfc8de8f567741779dafa511606a0f4449c3b4c1b9b15e54660e781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
70ff29808f933a6da97a182b0289bfb09dd2067cce66e0990172aa8719bf35ec
|
|
BLAKE2b-256 checksum How to use checksums |
af1d2ccdcbf7e434ed507326e8ea3bbddd6212d1e2511972fe97cdc1b1a7c569
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | PyPy 3.8 PyPy 3.8 7.3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
735dc1b39585b1df0d2489706f3498179728fe3f5cbd3f75388dc2708994311a
|
|
BLAKE2b-256 checksum How to use checksums |
fc803258a47ccd0554e1fb93cfd0e1087fb085718ea4e02e695c27bca2edd092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
604c07c6a772140e947e26a7f0d5f2e15665f1b70d8b62810fb3826b7ac471af
|
|
BLAKE2b-256 checksum How to use checksums |
193bb0b63bc1f54e41515e86ebd8ee4dfa52c50875d2189471c5b9bae4b9d083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | PyPy 3.7 PyPy 3.7 7.3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
36be5cd4cc0cfe9a2aca89fc6f45e4f0e57e710f1c94298abfe1399e922e01a8
|
|
BLAKE2b-256 checksum How to use checksums |
7a9e84e4bcc4e46c37fca96cb25d255802de7a37803d817534b0c64f8e15aead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp311-cp311-musllinux_1_1_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp311-cp311-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.11 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
440425da4354e2864995068aa91ae9c0817c43922da890a76298ff60df9fe561
|
|
BLAKE2b-256 checksum How to use checksums |
ecbe72d6228909a9b159cb8d343f609163fb56026d9935847e9dc7aaab7f7ae5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1d142793473a608cc90c13eef6215d4c19b01e655bce47b74885812f69009a9a
|
|
BLAKE2b-256 checksum How to use checksums |
9036d6de9030e650292c202a750a023d7c36d6634c0b9a2dd1cd6689d13c400d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp311-cp311-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp311-cp311-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
b4942f163b7eda4ceff2253c685a2094ac60441027af32a31efde2445c0cf2d5
|
|
BLAKE2b-256 checksum How to use checksums |
a1cd67f9fdf2570b70b7ecce8b25eb4295c6b807095a9b76e6900e34495e2baa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.10 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
d6959e1329de1a0c460d809fde417c41c6873e7eeac21d049fa04e94d61c569a
|
|
BLAKE2b-256 checksum How to use checksums |
fc1fb18ae34bfdf3a60cd0ad82e70cc6aa2add769f286d8c93176ef1e8a8e8a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d20d56374af6b821a66792745f6da2ffc09d325335a982f20e7440ca0c5fa1ac
|
|
BLAKE2b-256 checksum How to use checksums |
d4441cf7594596b955b0c4be2634a21f63dc0862176d5028096feea47e5f1423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp310-cp310-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp310-cp310-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
10cd479259b823e5da9be561ce894dea14f0da5472cf87fe0e50bb8bd5214993
|
|
BLAKE2b-256 checksum How to use checksums |
9f17c7a0f38f51eeb1792ac2a14164edf6fd0dcdef91a2689ffca1dd905caf75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.9 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
24d94bf34e51974feacfb71d9a9986c31c25f5da014e95d3fd87630cf1485dda
|
|
BLAKE2b-256 checksum How to use checksums |
691a6f95385626e327d737bb9daa4e7d5aa82fd5494f4d8ae140fc1824c2fba4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f04fcf7802861522fa776e71088a3268b0aa199e3da8ab66a71247296bbd74d1
|
|
BLAKE2b-256 checksum How to use checksums |
042aa72f2fdca63e0ef89c3bef4b967cd8d34f92486941e5c90864005495395a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
9a84c1384ada1017032f0f4a3a5fff87d4856bca5f9cc10b48f5a9a9764efe30
|
|
BLAKE2b-256 checksum How to use checksums |
0f7a0065d2e287b9774dd0d878b2013e0b5b3892f63ab74358eb050b35a16de1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.8 Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
08ba533eededa0919252ef21511559cef50366610d2a5f6ef5e482e7d1533528
|
|
BLAKE2b-256 checksum How to use checksums |
20b7a1df86661496fbf3e03c7894a2f0c6fcfb362ecb29342ed0bc882ce71de9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
5aa1ac573da9c9d74bb27d9d429728433b90394f0aec4ad517698d78cdca9aca
|
|
BLAKE2b-256 checksum How to use checksums |
6cdf5e6c80b926367dfd3b4942cd077cd19dc77e512c0e62814870b1f5ba1f97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp38-cp38-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp38-cp38-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.8 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
4b24d2c85b4d0931e3bbe16b9dc2f536c238954137eff8cdf18cb18d03308b59
|
|
BLAKE2b-256 checksum How to use checksums |
a29d8a697fbc736c166c6a10b4fc2c73a930d84f178c6249ec203cfa2cc48b30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux musl 1.1+ x86-64 |
|
SHA-256 checksum How to use checksums |
f5adcb29faaf4394f66c0a27a8bdda8b1872b5e2c504939a419cb6f6133f02af
|
|
BLAKE2b-256 checksum How to use checksums |
31f5488f96fa9ffa411505dc9c3fa2dc19d81d2b77bcd294fb34d031cb47cba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
42c2e84a7982dad89444b7d543c93bf3cd7187a1b4298b5af282fc747f5604db
|
|
BLAKE2b-256 checksum How to use checksums |
70a837a5a8aa5287169287e19b7d5641873f180d9b5977da35783b72fa601957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / sgx_dcap_quote_verify_python-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl
| Download URL | sgx_dcap_quote_verify_python-0.0.3-cp37-cp37m-macosx_10_9_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
0586c06c3db7e9089d8c3fa1d6391f29ee9c202bdc444d2c55c0a874930c482e
|
|
BLAKE2b-256 checksum How to use checksums |
09cb0dbf8a3c37f2dfe54d7f01e2707054274baf31e39bda93117e099f5396a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Security for sgx-dcap-quote-verify-python 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.