summaryrefslogtreecommitdiff
path: root/src/set.h
diff options
context:
space:
mode:
authorJimmy Zhang <jimmzhang@nvidia.com>2015-10-19 16:01:54 -0700
committerStephen Warren <swarren@nvidia.com>2015-10-19 17:33:18 -0600
commitdc126cfdc11bccbdb37708598451d6cabb5d02c2 (patch)
treeb87d69aec7df2db6211a255b17dbfd8671cb9cef /src/set.h
parentd4d2e8a65ce794836abbe3d0115e13a39c01edf2 (diff)
downloadnvidia-cbootimage-dc126cfdc11bccbdb37708598451d6cabb5d02c2.tar.gz
Add support for update pubkey and rsa-pss signatures
Create new configuration keywords: RsaKeyModulusFile: pubkey modulus RsaPssSigBlFile: bootloader rsa pss signature RsaPssSigBctFile: bct rsa pss signature Sample Configuration file update_bl_sig.cfg RsaKeyModulusFile = pubkey.mod; RsaPssSigBlFile = bl.sig; where pubkey.mod and bl.sig are files that contain the public key modulus and bootloader's rsa-pss signature respectively. public key modulus and signature are created through utilities outside cbootimage. Command line example: $ cbootimage -s tegra210 -u update_bl_sig.cfg image.bin image.bin-bl-signed Above three new keywords added in this CL are only implemented to support for T210. Signed-off-by: Jimmy Zhang <jimmzhang@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'src/set.h')
-rw-r--r--src/set.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/set.h b/src/set.h
index 8b9a69b..b38d4ce 100644
--- a/src/set.h
+++ b/src/set.h
@@ -42,6 +42,11 @@ set_mts_image(build_image_context *context,
u_int32_t entry_point);
int
+set_rsa_param(build_image_context *context,
+ parse_token token,
+ char *filename);
+
+int
context_set_value(build_image_context *context,
parse_token token,
void *value);