diff mbox series

[v6,5/9] test: capsule: Add files needed for testing EFI capsule updates

Message ID 20230801174018.1342555-6-sughosh.ganu@linaro.org
State New
Headers show
Series Integrate EFI capsule tasks into u-boot's build flow | expand

Commit Message

Sughosh Ganu Aug. 1, 2023, 5:40 p.m. UTC
Add the files that would be needed for testing the EFI capsule update
functionality. These include the keys needed for signing and
authenticating the capsules with the capsule authentication
functionality enabled. This includes the public key in form of the EFI
Signature List(ESL) file which will be embedded in the platform's DTB.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
---
Changes since V5:
* Get rid of the logic of keeping the files under the /tmp/capsules/
  directory from earlier versions.
* New patch which introduces the input files and certs needed for EFI
  capsule update testing in the tree.
* The capsule input files and certs are put under the
  test/py/tests/test_efi_capsule/test_files/ directory.

 .../test_efi_capsule/test_files/SIGNER.crt    |  19 ++++++++++++
 .../test_efi_capsule/test_files/SIGNER.esl    | Bin 0 -> 829 bytes
 .../test_efi_capsule/test_files/SIGNER.key    |  28 ++++++++++++++++++
 .../test_efi_capsule/test_files/SIGNER2.crt   |  19 ++++++++++++
 .../test_efi_capsule/test_files/SIGNER2.key   |  28 ++++++++++++++++++
 .../test_files/u-boot.bin.new                 |   1 +
 .../test_files/u-boot.bin.old                 |   1 +
 .../test_files/u-boot.env.new                 |   1 +
 .../test_files/u-boot.env.old                 |   1 +
 9 files changed, 98 insertions(+)
 create mode 100644 test/py/tests/test_efi_capsule/test_files/SIGNER.crt
 create mode 100644 test/py/tests/test_efi_capsule/test_files/SIGNER.esl
 create mode 100644 test/py/tests/test_efi_capsule/test_files/SIGNER.key
 create mode 100644 test/py/tests/test_efi_capsule/test_files/SIGNER2.crt
 create mode 100644 test/py/tests/test_efi_capsule/test_files/SIGNER2.key
 create mode 100644 test/py/tests/test_efi_capsule/test_files/u-boot.bin.new
 create mode 100644 test/py/tests/test_efi_capsule/test_files/u-boot.bin.old
 create mode 100644 test/py/tests/test_efi_capsule/test_files/u-boot.env.new
 create mode 100644 test/py/tests/test_efi_capsule/test_files/u-boot.env.old
diff mbox series

Patch

diff --git a/test/py/tests/test_efi_capsule/test_files/SIGNER.crt b/test/py/tests/test_efi_capsule/test_files/SIGNER.crt
new file mode 100644
index 0000000000..722a4e2483
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/SIGNER.crt
@@ -0,0 +1,19 @@ 
+-----BEGIN CERTIFICATE-----
+MIIDDTCCAfWgAwIBAgIUGGjxXEUS+sBJaSOBz4u0MJRWdcowDQYJKoZIhvcNAQEL
+BQAwFjEUMBIGA1UEAwwLVEVTVF9TSUdORVIwHhcNMjMwNzI3MDY1NjQzWhcNMzMw
+NzI0MDY1NjQzWjAWMRQwEgYDVQQDDAtURVNUX1NJR05FUjCCASIwDQYJKoZIhvcN
+AQEBBQADggEPADCCAQoCggEBAMUEYpFf8i/zLX6/4bhUAIrLWCxaLCqGscZ85DSU
+SagMu+9DpCDrJSzgZQFj2+YSc4JSoBDs9u/JN+HNH+hK255Slzf8+Pl2YeRjTyCA
+7k6u0s2nFpLJkMPBzqyrEYP+fNrGsTtIlvutef2MPs8WfgyzB5CSRx/K40PirQHE
+Lt5HfLJ8WOvPAbdZ4z+PDm5LrZReewJOYHVKQepAY8z3Dsy3ZBnXGI/1ZYgMfTU0
+sBCfTtEBJb+ja+eKepw93IuxPLdN1ZXW1YUiBTs7h+BUAJr+Qjt/zvWl2ms1+sQf
+dHtsMa+WmTLu0XHCGOEfgX/fdTWv1GaelMTxl9Lzqug/+8cCAwEAAaNTMFEwHQYD
+VR0OBBYEFLH9hYGrnXfQ/CfAMaMAh64xJxTCMB8GA1UdIwQYMBaAFLH9hYGrnXfQ
+/CfAMaMAh64xJxTCMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB
+ACSmt+2O8mNT5K232P2BOPt3r2v3M+HZFsjb54s+wSiY5tS1KBFJbMehGKhwNZRz
+uEIp1RJnsh9Kg8Cnzh2Hpgwnycx2sipbTXN0Frz8QuC3zbAqhrcalaKFOuSXbY6O
+mBBJDJENj+d57yzHxT3XvSmAu62UMf2hwJqIqQfA7+wrV2VGEbrY4O9KY6O4Mj2f
+vS9WjN3840xQCqsohwbU9u9GpHYb6eFQ+jiit/yqYVlJCSDN812Fv1TYOPzLqG8L
+VCCqqpPRJX0E13kPAafoNK5UA2OKglgosvufWzwJ3Mn0Al8BQnv5rRnBoTxJLDef
+n+uX7jeUW6LfIH5s8cMrA2Y=
+-----END CERTIFICATE-----
diff --git a/test/py/tests/test_efi_capsule/test_files/SIGNER.esl b/test/py/tests/test_efi_capsule/test_files/SIGNER.esl
new file mode 100644
index 0000000000000000000000000000000000000000..3d584cd44a22e0b9c5414f54a3a5bc24504f0a71
GIT binary patch
literal 829
zcmZ1&d0^?2Da*aux2_hA(f&|m%gg`<iclKDgOCPI%)ACoj9(WpGchtTiAZF8jByqE
zb-*)Ix$%7W7K15arKb#d**LY@JlekVGBR?rG8l*%iWms7F^94+^Kgf_28YB4d%F9%
z1{uhS^BNf&m>ZcJn3<ZH7)Oco8iTkdP%ch=O^iy&Rxq+MFgG#sGXP!1#ni;e$Z(V;
zX=3~*{m;5}`ycKIVdy#?p%bN})wc0i%@dO;o-25Ezjt1u@LE;pK`LYN?Po&8O+gC;
z-h6w1(){6B`4?Wd=LJnS|MTN#S>lsqe}#s3e(NrsT`o51<b=Zq&#hT4*!-{N*0GJ&
z9@BoWt^C_#cV4WHXEXbRN$&Ee9y>o;%XmcZo_o!vnuyou8MjA1w(sZ5^Ikh8uA0d&
zq14Oql|%BG?|f&rr$}Cx=>MA9!BcB$vO!?J-$h2%{fo1ocU8@?z0<wXX1njzsn@Qy
zDzREyw?7DBnDx)ey8hhPrMI$8e;tu8sm?K6KW(PbyNiW~Bp%8)*55BRU4JEQ-jpLB
zr(gQK>V^I9<4nwq42+9|4FU~hfuSzT$0Eievhi<g<LbHP7yhUpFkH;gzRplx<dA_p
zNLrai!a%G6y8?cY0%1nR|17Kq%s>h`*nu$%40c8am1W!C_I*kYezJD^jlYc+zsuKW
ze>Z-3Q|!d;=iPP(HD)}!vQ<OSGw1k1i4_H=Q;K&uX<ijd-z4wVd|>%G+4f~T>L<^X
zZPJSNEiMt;^T+AI_Olzb+O|tgUDRszWO{C2-wXjyo{7Bu&nw^S96xG%eXnN2?zK}4
z|1LZ*t79emf%k8;!&BV^cinjK-Ya?W4kO$7d-cP5?*4h~6Tr1vqn+)_xA$&K%A{XD
z4ESZSX#1a4iIJY13THpZw(bwPVe#kmihS-6g;lF2UsSDSxn9Z7xcr65x)A2%uBHf$
wO~2<y+i>1F`GqN-(W(09TFHY8Z9H|%=g)sV{hj%g=tcJx>T*6F)@Duv0DX*DtN;K2

literal 0
HcmV?d00001

diff --git a/test/py/tests/test_efi_capsule/test_files/SIGNER.key b/test/py/tests/test_efi_capsule/test_files/SIGNER.key
new file mode 100644
index 0000000000..e124cd35f0
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/SIGNER.key
@@ -0,0 +1,28 @@ 
+-----BEGIN PRIVATE KEY-----
+MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDFBGKRX/Iv8y1+
+v+G4VACKy1gsWiwqhrHGfOQ0lEmoDLvvQ6Qg6yUs4GUBY9vmEnOCUqAQ7PbvyTfh
+zR/oStueUpc3/Pj5dmHkY08ggO5OrtLNpxaSyZDDwc6sqxGD/nzaxrE7SJb7rXn9
+jD7PFn4MsweQkkcfyuND4q0BxC7eR3yyfFjrzwG3WeM/jw5uS62UXnsCTmB1SkHq
+QGPM9w7Mt2QZ1xiP9WWIDH01NLAQn07RASW/o2vninqcPdyLsTy3TdWV1tWFIgU7
+O4fgVACa/kI7f871pdprNfrEH3R7bDGvlpky7tFxwhjhH4F/33U1r9RmnpTE8ZfS
+86roP/vHAgMBAAECggEAMvsIAIM52cOM1bwUTgzamQ+2UL/Cpvx0ux5tNNfcWXJ2
+HRs9ONFwLLUiHeJ3sAi9QA9eYRLYcUL5xWG9bHAWdVj8zV2WFYNX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WVdnEJspmz11BZorS0TMhYn3/eArXKalLMhhRq0HqWJjc+8vu
+M1o40Gn1NdsvzQgiwi0JwAwS
+-----END PRIVATE KEY-----
diff --git a/test/py/tests/test_efi_capsule/test_files/SIGNER2.crt b/test/py/tests/test_efi_capsule/test_files/SIGNER2.crt
new file mode 100644
index 0000000000..25da91a873
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/SIGNER2.crt
@@ -0,0 +1,19 @@ 
+-----BEGIN CERTIFICATE-----
+MIIDDTCCAfWgAwIBAgIUA+466jn5wSD1ufVxtNZUYbC2eyUwDQYJKoZIhvcNAQEL
+BQAwFjEUMBIGA1UEAwwLVEVTVF9TSUdORVIwHhcNMjMwNzI3MDY1NjU5WhcNMzMw
+NzI0MDY1NjU5WjAWMRQwEgYDVQQDDAtURVNUX1NJR05FUjCCASIwDQYJKoZIhvcN
+AQEBBQADggEPADCCAQoCggEBAJvgRltjaxviomhFdY2V0hrLw9MxsxvuCGhEW7H0
+Xh7wg/7qufBVO7hY/f0H3+Q1TEKRH2/j6sio2l+2CC+Pf4e4KxWJl1pLe3RgjtMB
+zfuRkEqoF4rQyYRBL47P8fqSCvSdap+olj2O7K0iiYgrsJjLeq7zpOFRTu3Mxy6a
+ePw3by8OqLVLlkpEXuC2nZIpUCvaBtp2hi0qbbnaPOnEn4HH9d7l8C9NvIGd7IXf
+knW0+NJna7aMgjfI+Em+ZIfHed+s2mXgG5dzgMK+iPWjuePFGTRhXsJAG1jw4lVn
+haYJ0LgGdwSSoxx/cES/kGzRKik0zFACT9ke1u+jLQC17KMCAwEAAaNTMFEwHQYD
+VR0OBBYEFK8pSvdztiocjuXQ6M37rgtQQjTfMB8GA1UdIwQYMBaAFK8pSvdztioc
+juXQ6M37rgtQQjTfMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEB
+ABWO4IiahT5yukHgOwHIr7yj0OeBuH8dVlM8KCWUk1Vr6+vJNkHClvWbsiLuT7ns
+o1M27aCeagHWdtB1OmtaHKiFz+UpxIeVV1Ti6+1oshqg71xVCr6BY8+PzZiEj0r7
+auC1PEr4UtizmVAAyodf8lUaHGmU6zLzcCr9RtPhr9/5gq86V0IsXNn3p74CVf3k
+E8++FpNNBm43tmsWWKV4n4GyJHPNm1W/8P6HnFx4RKHuyNyUngA5axUFX/CvJ4jC
+RmE4Rxb2lncOumXx0/N4iC9SpfL78IcVxOyIpErnx3GLSvsEt5+TfLnLd9Y4IiOV
+mFrCCJRGrqGwmlZoDwKf2ZA=
+-----END CERTIFICATE-----
diff --git a/test/py/tests/test_efi_capsule/test_files/SIGNER2.key b/test/py/tests/test_efi_capsule/test_files/SIGNER2.key
new file mode 100644
index 0000000000..73b7d7d26f
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/SIGNER2.key
@@ -0,0 +1,28 @@ 
+-----BEGIN PRIVATE KEY-----
+MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCb4EZbY2sb4qJo
+RXWNldIay8PTMbMb7ghoRFux9F4e8IP+6rnwVTu4WP39B9/kNUxCkR9v4+rIqNpf
+tggvj3+HuCsViZdaS3t0YI7TAc37kZBKqBeK0MmEQS+Oz/H6kgr0nWqfqJY9juyt
+IomIK7CYy3qu86ThUU7tzMcumnj8N28vDqi1S5ZKRF7gtp2SKVAr2gbadoYtKm25
+2jzpxJ+Bx/Xe5fAvTbyBneyF35J1tPjSZ2u2jII3yPhJvmSHx3nfrNpl4BuXc4DC
+voj1o7njxRk0YV7CQBtY8OJVZ4WmCdC4BncEkqMcf3BEv5Bs0SopNMxQAk/ZHtbv
+oy0AteyjAgMBAAECggEAA2Rypr63qbz/2gzk8MAzErIFLYP8r2qgFGpxPaK69HZs
+kPz/ySfs64ER6gW+JpCblV+xYCiE+nmX4xLEA9deKBCAhr2RvzChKH7veZuMJZT2
+uUE5d4pxHRrXRtOzIvs2fmz5avpRM4uR20TDDhhRUn0r/g6MZvqNIRmRt8U7eKKD
+524QheUK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C7hKA==
+-----END PRIVATE KEY-----
diff --git a/test/py/tests/test_efi_capsule/test_files/u-boot.bin.new b/test/py/tests/test_efi_capsule/test_files/u-boot.bin.new
new file mode 100644
index 0000000000..798bfcb5e9
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/u-boot.bin.new
@@ -0,0 +1 @@ 
+u-boot:New
\ No newline at end of file
diff --git a/test/py/tests/test_efi_capsule/test_files/u-boot.bin.old b/test/py/tests/test_efi_capsule/test_files/u-boot.bin.old
new file mode 100644
index 0000000000..cd6427b0f7
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/u-boot.bin.old
@@ -0,0 +1 @@ 
+u-boot:Old
\ No newline at end of file
diff --git a/test/py/tests/test_efi_capsule/test_files/u-boot.env.new b/test/py/tests/test_efi_capsule/test_files/u-boot.env.new
new file mode 100644
index 0000000000..b2c4bd4cee
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/u-boot.env.new
@@ -0,0 +1 @@ 
+u-boot-env:New
\ No newline at end of file
diff --git a/test/py/tests/test_efi_capsule/test_files/u-boot.env.old b/test/py/tests/test_efi_capsule/test_files/u-boot.env.old
new file mode 100644
index 0000000000..04ad4c0ad4
--- /dev/null
+++ b/test/py/tests/test_efi_capsule/test_files/u-boot.env.old
@@ -0,0 +1 @@ 
+u-boot-env:Old
\ No newline at end of file