| 219050bf | 14-Nov-2018 |
Philippe Reynes <philippe.reynes@softathome.com> |
UPSTREAM: rsa: add a structure for the padding
The rsa signature use a padding algorithm. By default, we use the padding pkcs-1.5. In order to add some new padding algorithm, we add a padding framew
UPSTREAM: rsa: add a structure for the padding
The rsa signature use a padding algorithm. By default, we use the padding pkcs-1.5. In order to add some new padding algorithm, we add a padding framework to manage several padding algorithm. The choice of the padding is done in the file .its.
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> Reviewed-by: Simon Glass <sjg@chromium.org> (cherry picked from commit 20031567e12bb312bff95b70767f6275e20f0346)
Conflicts: common/image-fit.c lib/rsa/rsa-sign.c lib/rsa/rsa-verify.c
Change-Id: Ie522fec1ea69e6b86ebde0f7dad91a45670da66b Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| 68c4faa3 | 04-Dec-2019 |
Jeffy Chen <jeffy.chen@rock-chips.com> |
rockchip: mkimage: support packing optional second level boot-loader
Support packing optional second level boot-loader:
$ ./tools/mkimage -n rk3399 -T rksd -d \ rk3399_ddr_800MHz_v1.24.bin:rk3399
rockchip: mkimage: support packing optional second level boot-loader
Support packing optional second level boot-loader:
$ ./tools/mkimage -n rk3399 -T rksd -d \ rk3399_ddr_800MHz_v1.24.bin:rk3399_miniloader_v1.19.bin out -v Adding Image rk3399_ddr_800MHz_v1.24.bin Size 116492(pad to 116736) Adding Image rk3399_miniloader_v1.19.bin Size 88060(pad to 88064) Image Type: Rockchip RK33 (SD/MMC) boot image Init Data Size: 116736 bytes Boot Data Size: 88064 bytes
Mainly parse init file and boot file from datafile option, copy them to the image, and padding each one to 2KB boundary.
NOTE: I don't know much about rknand.c, and there's no way to verify it now. The output image is unchanged though (with a few extra padding).
Haven't got any feedback from upstream yet...But whatever, let's do this!
Change-Id: I0ce98a44634cfcd8acfe9a3e2cfbe3ee0107fba4 Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
show more ...
|
| 3a183b39 | 08-Mar-2020 |
Joseph Chen <chenjh@rock-chips.com> |
tools: image-host: support add all images of sub list into hash list
Like the image list assigned by "loadables" = ...
configurations { default = "config@1"; config@1 { ... loadables = "uboot
tools: image-host: support add all images of sub list into hash list
Like the image list assigned by "loadables" = ...
configurations { default = "config@1"; config@1 { ... loadables = "uboot@1", "atf@2", "atf@3"; signature@1 { algo = "sha1,rsa2048"; key-name-hint = "dev"; sign-images = "fdt", "firmware", "loadables"; }; }; };
Assuming the maximum sub image count is 5.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0454f6ad108342b5d85e831f7920baac642fb01a
show more ...
|
| f965884c | 29-Feb-2020 |
Joseph Chen <chenjh@rock-chips.com> |
tools: fit image: fix external image sign fail issue
Extract external data before adding verification data (must) with '-p' args, and shrink fdt blob to minimum size excluding the external data size
tools: fit image: fix external image sign fail issue
Extract external data before adding verification data (must) with '-p' args, and shrink fdt blob to minimum size excluding the external data size.
Add more space for device tree to avoid failed when insert new contents.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I202cba2b25306eb1023861bf8660d7ce6a1e4a34
show more ...
|