<repk>
ccaione: I may be wrong, I quickly step through aml_encrypt_g12a with gdb, I don't see no call to any rsa_* function. And dumping the header of output bl31.img.enc the key seems to be all null.
<repk>
the header format did change though
<ccaione>
@repk maybe you can pass the signature as parameter? Need to look better into that. And yes, the header changed
Consolatis has quit [Remote host closed the connection]
<repk>
ccaione: yes there is an option to pass the signature as a parameter but I follow that https://patchwork.ozlabs.org/patch/1083476/ and it seems to not be used. My guess is that it is only used on board that has been fused
<ccaione>
well, that would be good indeed
Darkmatter66 has quit [Ping timeout: 245 seconds]
Darkmatter66 has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
Lyude has quit [Read error: Connection reset by peer]
Lyude has joined #linux-amlogic
Darkmatter66 has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #linux-amlogic
vagrantc has joined #linux-amlogic
<repk>
ccaione: here is what I found while quickly disassembling aml_encrypt_g12a. The BL3* images are formed with a first Header an empty key a second header holding a sha256 hash of the bl3* binary then the sha256 of this second header then the bl3* binary data itself.
<repk>
I need to guess the meaning of some of this header fields but it should be not that difficult to do. Also bl33 is LZ4 compressed
Darkmatter66 has quit [Ping timeout: 245 seconds]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
<ccaione>
@repk yes, basically IV + 128 bytes header + 512 signature. BL30 seems different though? Is it signed twice?
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Client Quit]
marcodiego has joined #linux-amlogic
Lyude has quit [Quit: WeeChat 2.4]
Lyude has joined #linux-amlogic
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Read error: Connection reset by peer]
nsaenz has joined #linux-amlogic
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]
nsaenz has joined #linux-amlogic
nsaenz has quit [Remote host closed the connection]