[PATCH] D96164: [lld-macho] add code signature for native arm64 macOS

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 7 10:02:30 PST 2021


thakis added a comment.

In D96164#2547158 <https://reviews.llvm.org/D96164#2547158>, @gkm wrote:

> In order to perform ad-hoc codesign, I will need to compute sha256 of the program's pages. I see no other part of LLVM that uses a sha256 library. What library should I use?

LLVM tries to not depend on external libraries if possible. Given that sha256 isn't that much code (https://golang.org/src/crypto/sha256/), just adding a fresh implementation of it (to lld/MachO for now) is probably the way to go.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96164/new/

https://reviews.llvm.org/D96164



More information about the llvm-commits mailing list