summaryrefslogtreecommitdiff
path: root/board/cr50/dcrypto/util.c
diff options
context:
space:
mode:
authorVadim Sukhomlinov <sukhomlinov@google.com>2021-09-28 19:03:59 -0700
committerCommit Bot <commit-bot@chromium.org>2021-10-02 02:25:48 +0000
commit7b25ee08172491864900e3a2ba59d761355f4069 (patch)
tree34a6e2b353c8c22ec1b9fc43953c7ebda1d58805 /board/cr50/dcrypto/util.c
parent9f56663b5073d632c2c37ebb527ffcafa64b5425 (diff)
downloadchrome-ec-7b25ee08172491864900e3a2ba59d761355f4069.tar.gz
cr50: improve RSA core function to support up to RSA 4K
While all Dcrypto code for RSA supports 4K, few software functions were allocating static buffers on stack and thus limiting what RSA sizes can be supported. Updating bn_modinv_vartime() and bn_probable_prime() to allocate stack space dynamically. This simplifies enabling RSA 3K / 4K support. BUG=none TEST=make BOARD=cr50 CRYPTO_TEST=1; test/tpm_test/tpm_test.py Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com> Change-Id: I7c410d349e8755d491151152168701ecdd54c04c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193510 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org> Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'board/cr50/dcrypto/util.c')
0 files changed, 0 insertions, 0 deletions