Files
backend/common/OidcCrypto.h
T

24 lines
453 B
C++

#pragma once
#include "common/OidcJwt.h"
#include <json/json.h>
#include <string>
namespace visione::oidc
{
struct JweParts
{
Json::Value header;
std::string encodedHeader;
std::string encodedEncryptedKey;
std::string encodedIv;
std::string encodedCiphertext;
std::string encodedTag;
};
JweParts parseJwe(const std::string &jwe);
std::string decryptJwe(const std::string &jwe, const Jwk &jwk);
} // namespace visione::oidc