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

Method conditional_select

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

Source from the content-addressed store, hash-verified

636impl subtle::ConditionallySelectable for Choice {
637 #[inline]
638 fn conditional_select(a: &Self, b: &Self, choice: subtle::Choice) -> Self {
639 CtSelect::ct_select(a, b, choice.into())
640 }
641}
642
643#[cfg(feature = "subtle")]

Callers

nothing calls this directly

Calls 1

ct_selectFunction · 0.70

Tested by

no test coverage detected