| 89 | } |
| 90 | |
| 91 | EVP_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 | |
| 99 | WasiCryptoExpect<SecretVec> i2dPrivateKey(EVP_PKEY *Key) { |
| 100 | return writeKeyToBio<SecretVec>(Key, i2d_PrivateKey_bio); |
no test coverage detected