[PATCH 12/15] test: py: add signature to TLV integration tests

Jonas Rebmann jre at pengutronix.de
Wed Oct 22 04:08:50 PDT 2025


Hi,

On 2025-10-22 12:04, Ahmad Fatoum wrote:
> Hi,
> 
> On 10/14/25 1:03 PM, Jonas Rebmann wrote:
>> Add TLV signature to TLV integration tests:
>>   - Signed TLV using development RSA key
>>   - Modify payload and fix CRC for a "tampered" tlv
>>   - Include both cases in generator and tlv-command tests.
>>
>> Use the keys selected by CRYPTO_BUILTIN_DEVELOPMENT_KEYS for all TLV
>> testing. Consequentially add the matching private keys from the public
>> repository at [1].
>>
>> [1]: https://git.pengutronix.de/cgit/ptx-code-signing-dev/
>>
>> Signed-off-by: Jonas Rebmann <jre at pengutronix.de>
>> ---
>>   crypto/fit-4096-development.key  |  51 ++++++++++
>>   crypto/fit-ecdsa-development.key |   5 +
> 
> Move this into test/?

I chose to move the keys in with their certificates:
crypto/fit-4096-development.crt
crypto/fit-ecdsa-development.crt

Should I separate them, or move the certificates too (and adjust all
references such as for CONFIG_CRYPTO_PUBLIC_KEYS)?

Regards,
Jonas

-- 
Pengutronix e.K.                           | Jonas Rebmann               |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |



More information about the barebox mailing list