You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copyright (C) 2011-2020 Intel Corporation. All rights reserved.
3
+
*
4
+
* Redistribution and use in source and binary forms, with or without
5
+
* modification, are permitted provided that the following conditions
6
+
* are met:
7
+
*
8
+
* * Redistributions of source code must retain the above copyright
9
+
* notice, this list of conditions and the following disclaimer.
10
+
* * Redistributions in binary form must reproduce the above copyright
11
+
* notice, this list of conditions and the following disclaimer in
12
+
* the documentation and/or other materials provided with the
13
+
* distribution.
14
+
* * Neither the name of Intel Corporation nor the names of its
15
+
* contributors may be used to endorse or promote products derived
16
+
* from this software without specific prior written permission.
17
+
*
18
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
+
*
30
+
*/
31
+
32
+
enclave {
33
+
34
+
include "sgx_qve_header.h"
35
+
include "sgx_ql_quote.h"
36
+
37
+
38
+
trusted {
39
+
40
+
/**
41
+
* Verify QvE Report and Identity
42
+
*
43
+
* @param p_quote[IN] - Pointer to SGX Quote.
44
+
* @param quote_size[IN] - Size of the buffer pointed to by p_quote (in bytes).
45
+
* @param p_qve_report_info[IN] - The output of API "sgx_qv_verify_quote", it should contain QvE report and nonce
46
+
* @param expiration_check_date[IN] - This is the date to verify QvE report data, you should use same value for this API and "sgx_qv_verify_quote"
47
+
* @param collateral_expiration_status[IN] - The output of API "sgx_qv_verify_quote" about quote verification collateral's expiration status
48
+
* @param quote_verification_result[IN] - The output of API "sgx_qv_verify_quote" about quote verification result
49
+
* @param p_supplemental_data[IN] - The output of API "sgx_qv_verify_quote", the pointer to supplemental data
50
+
* @param supplemental_data_size[IN] - Size of the buffer pointed to by p_quote (in bytes)
51
+
* @param qve_isvsvn_threshold [IN] - The threshold of QvE ISVSVN, the ISVSVN of QvE used to verify quote must be greater or equal to this threshold. You can get latest QvE ISVSVN in QvE Identity (JSON) from Intel PCS.
52
+
*
53
+
* @return Status code of the operation, one of:
54
+
* - SGX_QL_SUCCESS
55
+
* - SGX_QL_ERROR_INVALID_PARAMETER
56
+
* - SGX_QL_ERROR_REPORT // Error when verifying QvE report
57
+
* - SGX_QL_ERROR_UNEXPECTED // Error when comparing QvE report data
58
+
* - SGX_QL_QVEIDENTITY_MISMATCH // Error when comparing QvE identity
59
+
* - SGX_QL_QVE_OUT_OF_DATE // QvE ISVSVN is smaller than input QvE ISV SVN threshold
60
+
**/
61
+
62
+
public quote3_error_t sgx_tvl_verify_qve_report_and_identity(
0 commit comments