[roll] Roll fuchsia [rust_crates] Always optimize scrypt for speed

Cryptographic primitives frequently rely on strong compiler
optimizations, especially around inlining, to achieve satisfactory
performance.  We've observed scrypt in `password_authenticator` taking
as high as 20 seconds to derive a key when built in debug mode, when the
equivalent computation takes less than a second in release mode.

Enabling full optimizations for particularly affected cryptographic code
even in debug builds has precedent in-tree -- we do the same for
boringssl to avoid painfully slow zxcrypt and blobfs performance.

This change switches the `scrypt` crate to always build optimized for
speed, which appears to reliably bring the wait at login time down from
dozens of seconds to under 2 seconds, of which only 150 msec are spent
on key derivation.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/666595
Original-Revision: 9211a353e0a0d8312c5a94401742d21aede7d44f
GitOrigin-RevId: 86721f117f65251bac0bc277aa1a7bf9f2e6d296
Change-Id: I5e22a75f5c9fd817c02dd3be318ceb92306fe5f9
1 file changed
tree: 7693ee8a68604eacc0c1494df0d804c236b029c8
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
  12. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.