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

Function pemWritePrivateKey

plugins/wasi_crypto/utils/evp_wrapper.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72WasiCryptoExpect<SecretVec> pemWritePrivateKey(EVP_PKEY *Key) {
73 return writeKeyToBio<SecretVec>(Key, [](BIO *B, EVP_PKEY *K) {
74 return PEM_write_bio_PrivateKey(B, K, nullptr, nullptr, 0, nullptr,
75 nullptr);
76 });
77}
78
79EVP_PKEY *d2iPUBKEY(Span<const uint8_t> Encoded) {
80 auto Bio = createBioFromSpan(Encoded);

Callers 3

exportPemMethod · 0.85
exportPemMethod · 0.85
exportPemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected