Repository navigation
feat(libSceLibreSsl): implement BN_print - #15480
Merged
Merged
Conversation
12 tasks done
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
adriadam10
force-pushed
the
feat/libressl-bn-print
branch
from
November 7, 2026 06:07
d789a5e to
a5b7874
Compare
This was referenced Nov 7, 2026
adriadam10
force-pushed
the
feat/libressl-bn-print
branch
from
November 7, 2026 20:40
a5b7874 to
1d91c72
Compare
12 tasks done
Write the sign, a single 0 for an empty BIGNUM, and the uppercase hex digits of the limbs without leading zeros, one BIO_write per character as LibreSSL 2.5.4 bn_print.c does, returning 0 on the first short write. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adriadam10
force-pushed
the
feat/libressl-bn-print
branch
from
November 10, 2026 04:01
1d91c72 to
bf6d46b
Compare
Collaborator
|
Checked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Implements
BN_printin libSceLibreSsl. It was the lastBN_export left throwing, kept back in #9446 because there was noBIOyet; the memoryBIOis onmainnow.It follows LibreSSL 2.5.4
bn_print.c:-for a negativeBIGNUM, then0whentopis 0, so a negative zero prints-0;BIO_writeper character, returning 0 on the first write that does not write 1 byte, and 1 otherwise.A null
BIGNUMthrows, like the otherBN_calls; LibreSSL dereferences it. A nullBIOreturns 0, asBIO_writedoes there.The debt entry drops the sentence saying
BN_printthrows, and the pending count goes down by one.Tested
GuestLibreSslBn:0,-1A,00F, a two-limb value, a 128-bit value, a non-normalizedBIGNUMwhose top limb is zero, a negative zero, a read-onlyBIOand a nullBIO. The expected strings and return values come from a small program linked against the LibreSSL 2.5.4libcrypto.abuilt by the oracle.libressl|crypto_memcmptests pass on Linux. Not run on Windows or macOS.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code