cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
sha256.hpp File Reference

OpenSSL-backed SHA-256 helpers for optional auth crypto. More...

#include <openssl/sha.h>
#include <array>
#include <cstddef>
#include <string>
#include <string_view>
#include "cxxmcp/auth/openssl/base64url.hpp"
#include "cxxmcp/core/result.hpp"

Go to the source code of this file.

Functions

core::Result< std::string > mcp::auth::openssl::sha256_base64url (std::string_view data)
 Compute base64url(SHA-256(data)).
 
core::Result< std::string > mcp::auth::openssl::dpop_access_token_hash (std::string_view access_token)
 Compute the RFC 9449 DPoP ath value for an access token.
 

Detailed Description

OpenSSL-backed SHA-256 helpers for optional auth crypto.