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

Method conditional_select

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ct_selectFunction · 0.70

Tested by

no test coverage detected