feat(libSceLibreSsl3): implement EVP_sha512_256 #15625
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15625"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by alvaroelpob on 2026-11-03T22:17:01Z.
What
Implements
EVP_sha512_256in libSceLibreSsl3: the SHA-512/256 digest of LibreSSL 4.0.0m_sha1.c(FIPS 180-4 initial hash, SHA-512 compression, 32-byte output), in theEVP_MDlayout the forwarded libSceLibreSslEVP_Digest*exports use.Tested
Linux x86-64 (WSL2), Release: the full build passes and
ctest --test-dir build -j16passes 3829 of 3829 tests, including the newguest_libressl3_sha512_256.python3 tools/check_conventions.py --base upstream/mainpasses. Not run on a console or in a title.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)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-04T02:32:12Z.
Review: APPROVED
@alvaroelpob thanks. The test's expected digests for
"","abc"and the two-block FIPS message (tests/Sha512_256.cpp:80,:81and:83) are exactly what Python'shashlib.new('sha512_256')gives on this machine, so the initial hash and the truncation are right. The NIDs match LibreSSL 4.0.0'sobjects/obj_mac.numat the commit you cite:sha512_256is 1030 andsha512_256WithRSAEncryptionis 1026. Taking the first 32 bytes of the SHA-512 output after the custom initial state is the FIPS truncation.What I ran: head
7c088237cfmerged ontomain1c8c0efc8c, Windows 11, WinLibs GCC, Release:guest_libressl3_sha512_256andpublic_headerspass (2 of 2);0x22312194fc2bf72cto0x22312194fc2bf72d:guest_libressl3_sha512_256fails;tools/check_conventions.py --base upstream/mainon the head: all checks passed;tools/pr_overlap.py --branch: no shared exports. None of the 10 PRs it couldn't compare addsEVP_sha512_256.As on #15618, your open LibreSsl3 PRs conflict with one another on the export count line and adjacent lines.
Approving.