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

Function getPKeyAlgorithm

flow/PKey.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73inline PKeyAlgorithm getPKeyAlgorithm(const EVP_PKEY* key) noexcept {
74 auto id = ::EVP_PKEY_base_id(key);
75 if (id == EVP_PKEY_RSA)
76 return PKeyAlgorithm::RSA;
77 else if (id == EVP_PKEY_EC)
78 return PKeyAlgorithm::EC;
79 else
80 return PKeyAlgorithm::UNSUPPORTED;
81}
82
83} // anonymous namespace
84

Callers 1

algorithmMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected