> For some reason I'm not getting the expected checksum from `generic_sum`.

I see generic_sum​ being applied to testfile.txt​ in both those packing scripts,
but that file is being generated in different ways: in tea.xyz​ it's being generated by
echo​ (which will put a newline character at the end); in Homebrew it's being generated
by (testpath/"testfile.txt").write("This is a test file")​ - and I don't
know if that will append a newline (some language libraries use writeln​ etc).

Either way, this looks like a packaging question rather than an Mbed TLS question;
you are more likely to find someone in the tea.xyz​ (or possibly Homebrew) support
channels who's able to help.

Thanks

Tom Cosgrove
Mbed TLS Developer


From: joe--- via mbed-tls <mbed-tls@lists.trustedfirmware.org>
Sent: 03 May 2023 22:30
To: mbed-tls@lists.trustedfirmware.org <mbed-tls@lists.trustedfirmware.org>
Subject: [mbed-tls] Help with unexpected generic_sum result
 
Hello,

I was working on packaging up mbedtls for [tea, a new package manager](https://tea.xyz/) and ran into an error validating the built products. I was hoping maybe someone more knowledgeable could take a quick look.

I followed the homebrew formula here: https://github.com/Homebrew/homebrew-core/blob/af8e7e97432944a65c0f985132a737341fe10197/Formula/mbedtls.rb
Here's the PR for adding it to tea: https://github.com/teaxyz/pantry/pull/1822

For some reason I'm not getting the expected checksum from `generic_sum`. Any help would be much appreciated. Thanks!

-Joe