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

Method conditional_select

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

Source from the content-addressed store, hash-verified

647{
648 #[inline]
649 fn conditional_select(a: &Self, b: &Self, choice: subtle::Choice) -> Self {
650 CtSelect::ct_select(a, b, choice.into())
651 }
652}
653
654#[cfg(feature = "subtle")]

Callers

nothing calls this directly

Calls 1

ct_selectFunction · 0.70

Tested by

no test coverage detected