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

Function d2iPrivateKey

plugins/wasi_crypto/utils/evp_wrapper.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91EVP_PKEY *d2iPrivateKey(Span<const uint8_t> Encoded) {
92 auto Bio = createBioFromSpan(Encoded);
93 if (!Bio) {
94 return nullptr;
95 }
96 return d2i_PrivateKey_bio(Bio.get(), nullptr);
97}
98
99WasiCryptoExpect<SecretVec> i2dPrivateKey(EVP_PKEY *Key) {
100 return writeKeyToBio<SecretVec>(Key, i2d_PrivateKey_bio);

Callers 3

importPkcs8Method · 0.85
importPkcs8Method · 0.85
importPkcs8Method · 0.85

Calls 2

createBioFromSpanFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected