MCPcopy Create free account
hub / github.com/apple/foundationdb / getAlgorithmName

Function getAlgorithmName

fdbrpc/TokenSign.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165std::string_view getAlgorithmName(Algorithm alg) {
166 if (alg == Algorithm::RS256)
167 return { "RS256" };
168 else if (alg == Algorithm::ES256)
169 return { "ES256" };
170 else
171 UNREACHABLE();
172}
173
174} // namespace authz
175

Callers 2

toStringRefMethod · 0.85
makeTokenPartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected