MCPcopy Create free account
hub / github.com/RustCrypto/utils / conditional_select

Method conditional_select

ctutils/src/choice.rs:614–616  ·  view source on GitHub ↗
(a: &Self, b: &Self, choice: subtle::Choice)

Source from the content-addressed store, hash-verified

612impl subtle::ConditionallySelectable for Choice {
613 #[inline]
614 fn conditional_select(a: &Self, b: &Self, choice: subtle::Choice) -> Self {
615 CtSelect::ct_select(a, b, choice.into())
616 }
617}
618
619#[cfg(feature = "subtle")]

Callers

nothing calls this directly

Calls 1

ct_selectFunction · 0.70

Tested by

no test coverage detected