Searched refs:base64String (Results 1 – 4 of 4) sorted by relevance
28 bool Base64StringDecode(const std::string& base64String, HapByteBuffer& output);
34 bool Base64StringDecode(const std::string& base64String, HapByteBuffer& output) in Base64StringDecode() argument36 std::unique_ptr<char[]> decodeBuffer = std::make_unique<char[]>(base64String.size()); in Base64StringDecode()41 const unsigned char* input = reinterpret_cast<const unsigned char*>(base64String.c_str()); in Base64StringDecode()42 … EVP_DecodeBlock(reinterpret_cast<unsigned char*>(decodeBuffer.get()), input, base64String.size()); in Base64StringDecode()
60 X509* HapCertVerifyOpensslUtils::GetX509CertFromBase64String(const std::string& base64String) in GetX509CertFromBase64String() argument62 …std::unique_ptr<unsigned char[]> decodeBuffer = std::make_unique<unsigned char[]>(base64String.siz… in GetX509CertFromBase64String()64 const unsigned char* input = reinterpret_cast<const unsigned char *>(base64String.c_str()); in GetX509CertFromBase64String()65 int32_t len = EVP_DecodeBlock(decodeBuffer.get(), input, base64String.size()); in GetX509CertFromBase64String()
33 DLL_EXPORT static X509* GetX509CertFromBase64String(const std::string& base64String);