summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/sb1.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-01-01 20:48:05 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-16 19:58:24 +0100
commit2b20026dd755706934f8f8e1a192bffdfc3d717c (patch)
tree3c8bb119ab5e9d3f62093563e99609c7dc2a8f2f /utils/imxtools/sbtools/sb1.h
parentcb8a98e365c0b69e068dc077eb5d68dd4a29a1ad (diff)
downloadrockbox-2b20026dd755706934f8f8e1a192bffdfc3d717c.tar.gz
rockbox-2b20026dd755706934f8f8e1a192bffdfc3d717c.zip
imxtools/sbtools: rework cryptography
It was a mess, a mix of crypto_* and cbc_mac calls. I made everything call crypto functions, and also separate key setup from cryptographic operations, this will be useful to speed up the code in the upcoming commits. Drop support for "usbotp" key, since the crypto code for that was never mainlined and we can always get the keys from a device as long as we have code execution (using the DCP debug registers). Change-Id: I7aa24d12207ffb744225d1b9cc7cb1dc7281dd22
Diffstat (limited to 'utils/imxtools/sbtools/sb1.h')
-rw-r--r--utils/imxtools/sbtools/sb1.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/imxtools/sbtools/sb1.h b/utils/imxtools/sbtools/sb1.h
index f2dec509b7..dd2f8afeec 100644
--- a/utils/imxtools/sbtools/sb1.h
+++ b/utils/imxtools/sbtools/sb1.h
@@ -139,8 +139,7 @@ enum sb1_error_t
139 SB1_FORMAT_ERROR = -5, 139 SB1_FORMAT_ERROR = -5,
140 SB1_CHECKSUM_ERROR = -6, 140 SB1_CHECKSUM_ERROR = -6,
141 SB1_NO_VALID_KEY = -7, 141 SB1_NO_VALID_KEY = -7,
142 SB1_FIRST_CRYPTO_ERROR = -8, 142 SB1_CRYPTO_ERROR = -8,
143 SB1_LAST_CRYPTO_ERROR = SB1_FIRST_CRYPTO_ERROR - CRYPTO_NUM_ERRORS,
144}; 143};
145 144
146enum sb1_error_t sb1_write_file(struct sb1_file_t *sb, const char *filename); 145enum sb1_error_t sb1_write_file(struct sb1_file_t *sb, const char *filename);