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

Function getMethod

fdbrpc/TokenSign.cpp:155–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155std::pair<PKeyAlgorithm, MessageDigestMethod> getMethod(Algorithm alg) {
156 if (alg == Algorithm::RS256) {
157 return { PKeyAlgorithm::RSA, ::EVP_sha256() };
158 } else if (alg == Algorithm::ES256) {
159 return { PKeyAlgorithm::EC, ::EVP_sha256() };
160 } else {
161 return { PKeyAlgorithm::UNSUPPORTED, nullptr };
162 }
163}
164
165std::string_view getAlgorithmName(Algorithm alg) {
166 if (alg == Algorithm::RS256)

Callers 11

addToClassPathMethod · 0.85
initMethod · 0.85
createWorkloadContextMethod · 0.85
createWorkloadMethod · 0.85
createPromiseMethod · 0.85
shutdownWorkloadMethod · 0.85
getMetricsMethod · 0.85
createDatabaseMethod · 0.85
callWorkloadMethod · 0.85
signTokenFunction · 0.85
verifyTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected