|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
2048-bit big-integer arithmetic for DH-group14 and RSA-2048. More...
#include "protocore_config.h"Go to the source code of this file.
2048-bit big-integer arithmetic for DH-group14 and RSA-2048.
A protocore_bignum is a fixed-width 2048-bit unsigned integer held as 64 little-endian 32-bit limbs, so its size is the compile-time constant 256 and a DH scalar and an RSA key fragment are the same type. The entries below read big-endian bytes in and write them back out, order two values, test one for zero, check a received DH public value against RFC 4253 ยง8, and run the group-14 modular exponentiation on whichever backend the vendor linked.
Definition in file bignum.h.