| 83 | } // anonymous namespace |
| 84 | |
| 85 | std::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 | |
| 96 | StringRef doWritePublicKeyPem(Arena& arena, EVP_PKEY* key) { |
| 97 | ASSERT(key); |
no outgoing calls
no test coverage detected