From ad5b1ea84bd22f8ed004ae66d5f8e93e887cef93 Mon Sep 17 00:00:00 2001 From: Richard Zak Date: Mon, 17 Oct 2022 18:14:11 -0400 Subject: [PATCH] Adding canned CSRs, tests Signed-off-by: Richard Zak --- crates/sgx_validation/src/icelake.csr | Bin 0 -> 4971 bytes crates/snp_validation/src/milan.csr | Bin 0 -> 2850 bytes src/main.rs | 37 +++++++++++++++++++++++--- 3 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 crates/sgx_validation/src/icelake.csr create mode 100644 crates/snp_validation/src/milan.csr diff --git a/crates/sgx_validation/src/icelake.csr b/crates/sgx_validation/src/icelake.csr new file mode 100644 index 0000000000000000000000000000000000000000..e397a2284e2fcc2c728c532d1fd73276fcab673d GIT binary patch literal 4971 zcmc&&YmnR274~K~yNU85yAWO>zyv6;4VE9fUQ=H8O0q1iWm}RZTb@GkYh}sr_1dxp zElnT^q%fo;ff)ic;ZXu*7)lCc3TX-@NgGOl3?V6P2WWu86xvcAnU+F&?cGhhd5{Et zR5KcDzH@c%x%YnOd`HF?^{Duwp6Qd?EVu<%@Se`D3zvAeUplF+b4v4}y{)SqS~}Wi z@BGPs&CR#|XjkCd;q~$z9qj7$+bI6}b2ojuZqL$=^W@dLfAHd*OM2eF0H1T=dvk_} zRiDiG@aLEJx39cu#ixr`zqMvj_d0x0_x+tyk=G@AXS7Y7Xat9?thjU7vG*?DLo2Zv>sMXZ+4YwzXZe$N?b^Nd#!b&% zvn^0-jO*;2Ib+|x#?!G~lgEbrb?o=uO?O~dC+eGDbZy-0-n$(vduvxte|gTT*H3%; zqZiHZ`Htq54y}21ZF0{r_xgiNwK*%_pvL@+aPVX6*%o{q(XIuG+rA_)^<) z_WZf`;6KwpiCq>CKYq^AvtIi3!r7<3`}wTJUC&OXcJ!Y=>#+y7?$~;n=i$5GS@_nK z@t%)&2LC;0_}-o8d~ok~ezotB*(cxmeEEY-|2$p}oHVwmaSlA%eaWVWvga+n`i-4$ zeCZ8sCog^b&HwN_7M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