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

Function pkeyAlgorithmName

flow/PKey.cpp:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83} // anonymous namespace
84
85std::string_view pkeyAlgorithmName(PKeyAlgorithm alg) noexcept {
86 switch (alg) {
87 case PKeyAlgorithm::EC:
88 return "EC";
89 case PKeyAlgorithm::RSA:
90 return "RSA";
91 default:
92 return "UNSUPPORTED";
93 }
94}
95
96StringRef doWritePublicKeyPem(Arena& arena, EVP_PKEY* key) {
97 ASSERT(key);

Callers 3

algorithmNameMethod · 0.85
checkVerifyAlgorithmFunction · 0.85
checkSignAlgorithmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected