Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c4be82c authored by Pete Bentley's avatar Pete Bentley
Browse files

Use SHA-256 for hashing BoringSSL crypto module.

Reason: Performs significantley better than SHA-512
on ARM64 devices

Bug: 141710485
Test: flashall
Change-Id: I40f0873d3e705a75b9a7a3ba1445a9176afff77b
parent 852116a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1333,6 +1333,7 @@ func maybeInjectBoringSSLHash(ctx android.ModuleContext, outputFile android.Modu
		rule := android.NewRuleBuilder()
		rule.Command().
			BuiltTool(ctx, "bssl_inject_hash").
			Flag("-sha256").
			FlagWithInput("-in-object ", outputFile).
			FlagWithOutput("-o ", hashedOutputfile)
		rule.Build(pctx, ctx, "injectCryptoHash", "inject crypto hash")