keys: increase default RSA key size to 4096 bitsChange the key size in your default key located at default.pem to 4096bits.New key has been created using this command: openssl genrsa -out keys
keys: increase default RSA key size to 4096 bitsChange the key size in your default key located at default.pem to 4096bits.New key has been created using this command: openssl genrsa -out keys/default.pem 4096Background:GlobalPlatform, based on feedback from various national bodies such asANSSI, BSI, SOGIS, and NIST, has decided to designate RSA keys smallerthan 2048 bits as deprecated (see [1]).Note:This key is intended for testing purposes only. Therefore, it's not aproblem to publicly publish this, but it's important to remember tochange this if/when used in real products.Link: https://globalplatform.org/specs-library/globalplatform-technology-cryptographic-algorithm-recommendations/ [1]Signed-off-by: Joakim Bech <joakim.bech@linaro.org>Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
keys: rename the default key to default.pemThe default key can have other uses than the TA signature.Rename the file to have a generic name.For compatibility with existing code, doc and CI, the
keys: rename the default key to default.pemThe default key can have other uses than the TA signature.Rename the file to have a generic name.For compatibility with existing code, doc and CI, thedefault_ta.pem is kept but becomes a symbolic link.If the default_ta.pem is selected, the default.pem file isalso copied in the build folder as default_ta.pem symlinkpoints to it.Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
TA as ELF + signatureChanges format of TA to use the ELF format instead. This patch also addssignature checking of the TA. The format of the TA is:<Signed header><ELF header><Program header> (p
TA as ELF + signatureChanges format of TA to use the ELF format instead. This patch also addssignature checking of the TA. The format of the TA is:<Signed header><ELF header><Program header> (part of ELF spec, pointing out segments to load)<Sections>A struct ta_head is placed in the first section of the first segmentto carry flags and other properties of the TA.elf32.h, elf64.h and elf_common.h are imported from FreeBSD.In addition to the R_ARM_RELATIVE relocation type, adds support forR_ARM_ABS32 relocations. Since a symbol table is needed to process thisrelocation type a separate program header is added in the TA ELFcontaining the sections .dynamic, .dynsym, .dynstr and .hash. Thesesections are only needed during relocation and could be released oncethe TA is relocated.A default signing key has been generated withopenssl genrsa -out key.pemand added as keys/default_ta.pemSigned-off-by: Jens Wiklander <jens.wiklander@linaro.org>Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP)Reviewed-by: Pascal Brand <pascal.brand@linaro.org>Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)Tested-by: Pascal Brand <pascal.brand@linaro.org> (QEMU platform)Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)