MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / pemReadPUBKEY

Function pemReadPUBKEY

plugins/wasi_crypto/utils/evp_wrapper.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} // namespace
50
51EVP_PKEY *pemReadPUBKEY(Span<const uint8_t> Encoded) {
52 auto Bio = createBioFromSpan(Encoded);
53 if (!Bio) {
54 return nullptr;
55 }
56 return PEM_read_bio_PUBKEY(Bio.get(), nullptr, nullptr, nullptr);
57}
58
59WasiCryptoExpect<std::vector<uint8_t>> pemWritePUBKEY(EVP_PKEY *Key) {
60 return writeKeyToBio<std::vector<uint8_t>>(

Callers 2

importPemMethod · 0.85
importPemMethod · 0.85

Calls 2

createBioFromSpanFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected