Fixed comparison of RSA4096 header size in sign.py

pull/181/head
Daniele Lacamera 2022-03-02 17:46:35 +01:00
parent 048eaffbe6
commit 7b51eef290
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ else:
WOLFBOOT_HEADER_SIZE = 512
HDR_SIGNATURE_LEN = 256
if sign == 'rsa4096':
if WOLFBOOT_HEADER_SIZE < 512:
if WOLFBOOT_HEADER_SIZE < 1024:
WOLFBOOT_HEADER_SIZE = 1024
HDR_SIGNATURE_LEN = 512