chiark / gitweb /
rsa: Break out rsa_loadpub_core
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 23 Nov 2019 13:25:01 +0000 (13:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Dec 2019 17:08:52 +0000 (17:08 +0000)
commit98ef734508e6a94b3356373eb5ca8be182145535
tree4c521aa0c061fdea2635662fbb3c3e08f8d911a4
parent4b89ae2bc995f1fb83fb52fa5f7c5cd48d9f9d13
rsa: Break out rsa_loadpub_core

This involves some faff:

We provide macros for helping define and call loadpub_core.
We split RSAPUB_LOADCORE_DEFBN out of RSAPUB_APPLY_GETBN.
RSAPUB_APPLY_GETBN is reworked to do the missing parameter
check first, which lets us introduce e_loc and n_loc.

A side effect is that when we complain about "implausibly large" we
mention the specific rather than general loc.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
rsa.c