From 6cbf5a4822955351b09ae907d03de4334be7c6f8 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Wed, 18 Oct 2017 23:40:16 +0200 Subject: [PATCH] linker script: fix keystore_pool size Gnuk supports RSA keys up to 4096 bits. This require 1024 bytes of storage (p and q are 256 bytes, n is 512 bytes). The linker script should therefore reserve 1024 bytes per key instead of 512. In practice it's not an issue at all as all supported MCU have a page size bigger than 1024 bytes and Gnuk use one page per key. --- src/gnuk.ld.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gnuk.ld.in b/src/gnuk.ld.in index d6363d8..70042c5 100644 --- a/src/gnuk.ld.in +++ b/src/gnuk.ld.in @@ -135,11 +135,11 @@ SECTIONS { . = ALIGN (@FLASH_PAGE_SIZE@); _keystore_pool = .; - . += 512; + . += 1024; . = ALIGN(@FLASH_PAGE_SIZE@); - . += 512; + . += 1024; . = ALIGN(@FLASH_PAGE_SIZE@); - . += 512; + . += 1024; . = ALIGN(@FLASH_PAGE_SIZE@); _updatekey_store = .; . += 1024;