diff options
author | Michael Brown <mcb30@ipxe.org> | 2025-01-20 15:55:13 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2025-01-20 16:00:44 +0000 |
commit | cc38d7dd3e379f3f93bcc97390137bbfd4049d60 (patch) | |
tree | 16b62e9ae4cb6f5c9f962cb92bab4f1d7a7e0a36 /src/net/icmpv4.c | |
parent | d88eb0a1935942cdeccd3efee38f9765d2f1c235 (diff) | |
download | ipxe-cc38d7dd3e379f3f93bcc97390137bbfd4049d60.tar.gz |
[crypto] Add bigint_ntoa() for transcribing big integers
In debug messages, big integers are currently printed as hex dumps.
This is quite verbose and cumbersome to check against external
sources.
Add bigint_ntoa() to transcribe big integers into a static buffer
(following the model of inet_ntoa(), eth_ntoa(), uuid_ntoa(), etc).
Abbreviate big integers that will not fit within the static buffer,
showing both the most significant and least significant digits in the
transcription. This is generally the most useful form when visually
comparing against external sources (such as test vectors, or results
produced by high-level languages).
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/icmpv4.c')
0 files changed, 0 insertions, 0 deletions