|
ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
|
RSA-2048 PKCS#1 v1.5 signature primitive (RFC 8017) - verify + software sign. More...
#include "protocore_config.h"Go to the source code of this file.
RSA-2048 PKCS#1 v1.5 signature primitive (RFC 8017) - verify + software sign.
The shared, protocol-agnostic RSA primitive: it takes raw big-endian key material (modulus n, exponent) and a message, and does the RSASSA-PKCS1-v1.5 math with a SHA-256 or SHA-512 digest. It knows nothing about SSH key blobs, host-key storage, or the "ssh-rsa" / "rsa-sha2-256" wire names - that layer lives in network_drivers/presentation/ssh/transport/ssh_rsa and calls into this primitive.
Both entries take raw big-endian key material: verify takes n and the four-byte public exponent, sign takes n and the full-width private exponent d. One modular multiply underneath them has an accelerated arm and a software arm; everything else is the same code on every part.
Definition in file rsa.h.