Skip to content

Commit 9a39dab

Browse files
authored
Merge pull request fortanix#769 from fortanix/mridul/pcs-test-artifacts-update
PROD-10362 update tcb_eval_data artifacts
2 parents 68aa759 + 4fba056 commit 9a39dab

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

intel-sgx/pcs/src/tcb_evaluation_data_numbers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,15 +294,15 @@ mod tests {
294294
let numbers = RawTcbEvaluationDataNumbers::read_from_file("./tests/data").unwrap();
295295
let root_certificate = include_bytes!("../tests/data/root_SGX_CA_der.cert");
296296
let root_certificates = [&root_certificate[..]];
297-
numbers.verify_ex(&root_certificates, Platform::SGX, &Utc.with_ymd_and_hms(2025, 4, 1, 12, 0, 0).unwrap()).unwrap();
297+
numbers.verify_ex(&root_certificates, Platform::SGX, &Utc.with_ymd_and_hms(2025, 6, 4, 12, 0, 0).unwrap()).unwrap();
298298
}
299299

300300
#[test]
301301
fn parse_tcb_evaluation_data_numbers_incorrect_signature() {
302302
let numbers = RawTcbEvaluationDataNumbers::read_from_file("./tests/data").unwrap();
303303
let root_certificate = include_bytes!("../tests/data/root_SGX_CA_der.cert").to_owned();
304304
let root_certificates = [&root_certificate[..]];
305-
numbers.verify_ex(&root_certificates, Platform::SGX, &Utc.with_ymd_and_hms(2025, 4, 1, 12, 0, 0).unwrap()).unwrap();
305+
numbers.verify_ex(&root_certificates, Platform::SGX, &Utc.with_ymd_and_hms(2025, 6, 4, 12, 0, 0).unwrap()).unwrap();
306306

307307
let mut corrupted = numbers.clone();
308308
corrupted.signature[10] = 0x66;

intel-sgx/pcs/src/tcb_info.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,12 +538,12 @@ mod tests {
538538
#[test]
539539
#[cfg(not(target_env = "sgx"))]
540540
fn read_tcb_info_v3() {
541-
let tcb_info = TcbInfo::restore("./tests/data/", &Fmspc::try_from("00906ed50000").unwrap(), Some(18)).unwrap();
541+
let tcb_info = TcbInfo::restore("./tests/data/", &Fmspc::try_from("00906ed50000").unwrap(), Some(19)).unwrap();
542542
let root_certificate = include_bytes!("../tests/data/root_SGX_CA_der.cert");
543543
let root_certificates = [&root_certificate[..]];
544-
let april_28_2025 = Utc.with_ymd_and_hms(2025, 4, 28, 12, 0, 0).unwrap();
545-
assert!(tcb_info.verify_ex(&root_certificates, Platform::SGX, 3, &april_28_2025).is_ok());
546-
assert!(tcb_info.verify_ex(&root_certificates, Platform::SGX, 4, &april_28_2025).is_err());
544+
let june_5_2025 = Utc.with_ymd_and_hms(2025, 6, 5, 12, 0, 0).unwrap();
545+
assert!(tcb_info.verify_ex(&root_certificates, Platform::SGX, 3, &june_5_2025).is_ok());
546+
assert!(tcb_info.verify_ex(&root_certificates, Platform::SGX, 4, &june_5_2025).is_err());
547547
}
548548

549549
#[test]

intel-sgx/pcs/tests/data/00906ed50000-18.tcb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)