13 Commits

Author SHA1 Message Date
vit9696
835137c13d Utilities: Workaround shellcheck false positive 2025-08-09 19:27:09 +03:00
Mike Beaton
35bcb134f1 CreateVault: Fix sign.command and update signing docs
Fix operation of `sign.command` when printable characters occur
immediately before `=BEGIN OC VAULT=`. `strings` finds the location of
the first printable character in such a sequence. `hexdump` automatically
works on 16 byte boundaries, so still finds the correct offset.

Use `BASE_ALIGNAS` to enforce the required alignment, which will not be
correct on all builds unless enforced (note alignment is required purely
for locating the structure correctly from external script as above, not
for reading in C).

Remove struct packing, since structs had better be naturally packed anyway
(if not, reading from them without arbitrary-alignment-safe code, as we
do, would be undefined behaviour). Add static asserts to confirm expected
size as required by `sign.command`.

Update the docs to refer to `sign.command` rather than to include the
signing commands explicitly - otherwise we have two places that need to
be kept in sync for signing commands, and note that the commands in the
two places were already out of sync.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
2024-11-26 22:22:28 +00:00
vit9696
d60b94d567 Utilities: Fix shellcheck warnings 2022-12-22 13:44:21 +03:00
Paul Mulders
589d994716
Utilities: Fix CreateVault Linux portability (#362)
* exclude memtest86 generated log files and reports from vault.plist

* make CreateVault scripts work on linux too

* create_vault.sh: use shellcheck suggestions

* create_vault.sh: use full path to sort for consistency
2022-07-03 13:18:45 +03:00
Paul Mulders
e733af2737
CreateVault: do not create misleading files (#361) 2022-06-26 13:37:39 +03:00
Jeremy Li
745c1c19ec
Utilities: Clean up keys after done with signing vault (#163) 2020-12-02 10:21:43 +03:00
Rodion Shingarev
498521448f Utilities: CreateVault optimized with ShellCheck 2020-05-10 01:37:58 +03:00
dakanji
c2228cb25c
Build: Update ShellCheck CI (#49) 2020-05-09 20:41:23 +03:00
vit9696
7fd0779dc6 Utilities: Fixed invalid checksum checks when creating vault (thx @dakanji)
closes acidanthera/bugtracker#888
2020-05-03 21:15:07 +03:00
Download-Fritz
410d10d3fc
OcCryptoLib: Import new RSA stack
Import a new RSA stack and test utilities to support IMG4 image verification.
2019-11-06 19:26:45 +01:00
PMheart
92a2127eb1 Utilities: Sync from 2bb58282f6 2019-07-13 19:32:43 +08:00
PMheart
b692268826 Utilities: Only accepting Utilities folder to be put in the same directory as OC. 2019-07-02 04:39:29 +08:00
PMheart
47de947325 Tools: Userspace toolkit is now renamed to Utilities 2019-07-02 04:35:47 +08:00