You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR reorganizes backends structure and related configuration flags.
Now backends like `x86_sha` expose `compress` function marked with
`#[target_feature(enable = "...")]` which has to be called using
`unsafe` after an appropriate run-time or compile-time check.
Autodetection is now handled by the (default) fallback `cfg_if!` branch
instead of doing it in the backend modules. `sha2_backend` now forces
selection of the specified backend and if necessary checks at compile
time whether target features required by the backend were properly
enabled.
`sha2_backend="soft-compact"` and `sha2_backend="riscv-zknh-compact"`
configuration flags are replaced by `sha2_backend_soft="compact"` and
`sha2_backend_riscv_zknh="compact"` flags respectively.
Additionally `sha2_256_backend` and `sha2_512_backend` configuration
flags are introduced for finer-grained control over selected backends.
0 commit comments