MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / optionsOpen

Function optionsOpen

plugins/wasi_crypto/common/options.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11namespace Common {
12
13Options optionsOpen(__wasi_algorithm_type_e_t Alg) noexcept {
14 switch (Alg) {
15 case __WASI_ALGORITHM_TYPE_SIGNATURES:
16 return Options{std::in_place_type<Signatures::Options>};
17 case __WASI_ALGORITHM_TYPE_SYMMETRIC:
18 return Options{std::in_place_type<Symmetric::Options>};
19 case __WASI_ALGORITHM_TYPE_KEY_EXCHANGE:
20 return Options{std::in_place_type<Kx::Options>};
21 default:
22 assumingUnreachable();
23 }
24}
25
26WasiCryptoExpect<void> optionsSet(Options &Options, std::string_view Name,
27 Span<const uint8_t> Value) noexcept {

Callers 3

TEST_FFunction · 0.85
TEST_FFunction · 0.85
optionsOpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected