diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-16 21:07:31 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-16 21:28:41 +0100 |
| commit | 212cfdf771dc0059804cf817caaf2e43ef2b3f50 (patch) | |
| tree | 48606c29d82efb075fff71789155719cab3dd6da /utils/imxtools/sbtools/sb1.h | |
| parent | f4f600fc52d38e4a287913050880647144d1873c (diff) | |
| download | rockbox-212cfdf771dc0059804cf817caaf2e43ef2b3f50.zip rockbox-212cfdf771dc0059804cf817caaf2e43ef2b3f50.tar.gz rockbox-212cfdf771dc0059804cf817caaf2e43ef2b3f50.tar.bz2 rockbox-212cfdf771dc0059804cf817caaf2e43ef2b3f50.tar.xz | |
imxtools/sbtools: fix some instruction handling & crypto
Change-Id: I6530bdf27896d8325dec4e2ba31c7e6a0131a286
Diffstat (limited to 'utils/imxtools/sbtools/sb1.h')
| -rw-r--r-- | utils/imxtools/sbtools/sb1.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/imxtools/sbtools/sb1.h b/utils/imxtools/sbtools/sb1.h index 0a0c9fe..1ee2897 100644 --- a/utils/imxtools/sbtools/sb1.h +++ b/utils/imxtools/sbtools/sb1.h @@ -58,7 +58,8 @@ struct sb1_cmd_header_t uint32_t addr; } __attribute__((packed)); -#define SB1_CMD_MAX_SIZE 0x1ff8 +#define SB1_CMD_MAX_LOAD_SIZE 0x1ff8 +#define SB1_CMD_MAX_FILL_SIZE 0x3fff #define SB1_CMD_SIZE(cmd) ((cmd) >> 21) #define SB1_CMD_CRITICAL(cmd) !!(cmd & (1 << 20)) @@ -125,7 +126,7 @@ struct sb1_file_t struct sb1_inst_t *insts; void *userdata; int userdata_size; - union xorcrypt_key_t key[2]; + struct crypto_key_t key; }; enum sb1_error_t |