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

Function pemWritePUBKEY

plugins/wasi_crypto/utils/evp_wrapper.cpp:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59WasiCryptoExpect<std::vector<uint8_t>> pemWritePUBKEY(EVP_PKEY *Key) {
60 return writeKeyToBio<std::vector<uint8_t>>(
61 Key, [](BIO *B, EVP_PKEY *K) { return PEM_write_bio_PUBKEY(B, K); });
62}
63
64EVP_PKEY *pemReadPrivateKey(Span<const uint8_t> Encoded) {
65 auto Bio = createBioFromSpan(Encoded);

Callers 2

exportPemMethod · 0.85
exportPemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected