bios-key: import from gBMC
Add BIOS public key to google-misc
Change-Id: I9e4c993f92540aff6437c4d032f34505b8cabe09
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/.gitignore b/.gitignore
index d73d627..07f32cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,7 @@
build*/
subprojects/*
!subprojects/acpi-power-state-daemon/
+!subprojects/bios-key/
!subprojects/libcr51sign/
!subprojects/metrics-ipmi-blobs/
!subprojects/ncsid/
diff --git a/bios-key b/bios-key
new file mode 100644
index 0000000..ce61e52
--- /dev/null
+++ b/bios-key
@@ -0,0 +1 @@
+./subprojects/bios-key/
\ No newline at end of file
diff --git a/meson.build b/meson.build
index f84a2d3..c9c61e5 100644
--- a/meson.build
+++ b/meson.build
@@ -39,3 +39,4 @@
subproject('metrics-ipmi-blobs', default_options: 'tests=' + tests_str)
subproject('nemora-postd')
subproject('libcr51sign')
+subproject('bios-key')
diff --git a/subprojects/bios-key/meson.build b/subprojects/bios-key/meson.build
new file mode 100644
index 0000000..3d90fb7
--- /dev/null
+++ b/subprojects/bios-key/meson.build
@@ -0,0 +1,29 @@
+# Copyright 2021 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+project(
+ 'gbmc-bios-key',
+ 'c',
+ version: '0.1',
+ meson_version: '>=0.57.0',
+ default_options: [
+ 'warning_level=3',
+ 'werror=true',
+ 'c_std=c18',
+ ])
+
+install_data(
+ 'platforms_bringup.pem',
+ 'platforms_secure.pem',
+ install_dir : get_option('datadir'))
diff --git a/subprojects/bios-key/platforms_bringup.pem b/subprojects/bios-key/platforms_bringup.pem
new file mode 100644
index 0000000..85fbd5b
--- /dev/null
+++ b/subprojects/bios-key/platforms_bringup.pem
@@ -0,0 +1,14 @@
+-----BEGIN PUBLIC KEY-----
+MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAq1licj5L+p5orm2eQsjW
+7z1L5As2q0ZbyFtE/xeH/8NAbKfTA1LSKiqElcPTM47oFDixGtCm7bubcClWT8Uq
+Ol6t4CITlgRLFPP06z63mnE83EKj1ZBTATgtO+PN1P/RrQXp0pCPy0AFYtWZPT4J
+GzxACBwVI/XEuUnCOG4ErXLfgfPZadOMUmP9X5pXeyBgN/al0vThIVpQ7DUix6jd
+awYd2AwM1TG9qRX1Fmlsut9zUGDoqEOCAdIgx5z9GOTfwzbIg1NWk12iLQyufJ4P
+FAa4a5QVZYTKcDUNYadx7Qwg/gNspiAIdtB/1ORz1ew1d1csCHqUZcgkCwtaqMYg
+ZiQ6+7tpJY0vnWyaNXcylOvmZjOlovV3i5NUJ/r74bDC8U+5XKH3ZSmhA6AsnA54
+QnNHLgsnG89JvfBP2c9UJqb49sw6VkEE3Y8lc134QBaLU3N3LmRVmM4zzPRGbbEK
++nmZtBztbKiSHTqMoYGCY5aN1peQdzgNYk5P8mnVWzAIh5y1MzxkEVeu82/zCj+/
+T54D3jS+a/jxAGnUUmTMYsOYXNqJsPKz36qvrFLstSjrjHVEZjniaetjAuWtVGsO
+DziPDyywN14iIeR5HdNpqeJ6mCZnY2rLtBzIZRK/JK0LpCvqdEmqg2u/J2Vx2ClE
+DnNnPSr8XSpsFkaxGYyFjEUCAwEAAQ==
+-----END PUBLIC KEY-----
diff --git a/subprojects/bios-key/platforms_secure.pem b/subprojects/bios-key/platforms_secure.pem
new file mode 100644
index 0000000..6519411
--- /dev/null
+++ b/subprojects/bios-key/platforms_secure.pem
@@ -0,0 +1,14 @@
+-----BEGIN PUBLIC KEY-----
+MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzCYi0R3IiNenOlVNlpOC
+mIZ/0nq6OGS5Dt1Yex5nr7/bIr+Phk7mct+V7gMJzfdyCOI3n2S2sGDWADUNfvDJ
+LQgV4xOfoUwhzQ292cp2UFUrPblfZaz0C5x7BRVtj7yfBp8FRFVSpZTNI6QjEQ6m
+JxVh5C8CYjdQQJLz+wayVZTk72z0iaSBdua+eZYrAc3+ckTvTWJ9V7yO40iyJOXQ
+ixxHo/p49oHoNp4+q0a6DYYmjka6MESeFbbkND5PkyNV4+vAbgtzkoGnnutk+zQ3
+K374d9+aOqXlbLBXAUaNkfnF1XjUYQFLrNkFbvOqYura1mBxWuz/OIAfbWxQltzo
+6cYl0YNw7zbHzSwiTPvt31wxg9EqqIV7QD4hXLAgoclJIK5vhUqIbn3kjSwOv2Rv
+MQ17wLeCkYaxL4Ovscx6lDnOw+Y76KGia5zky0GvidjaDgzUZTt46/uOtjxxXy5k
+KhDwqs1QoU0LKBvJL8O7bYj6t0LLQTsI2UW9szVGGsiKB3l0SfIzfvz6eNNng7Uf
+T9zLPW9jq0BGG61KiYK+Dy/0JwauPub3WzcZwSXnl1OCMLD90HIA2/YsFtfE+mm/
+Wlta+cR3REHd//DiRlkT59K0H5H8JBrJKhkAVi/gzqoAYhLAOj9irWzsZ2Assm74
+oa3/lWlmVsKQTAGOCQFeAHsCAwEAAQ==
+-----END PUBLIC KEY-----