MantisBase v0.4.9
Loading...
Searching...
No Matches
crypto_utils.h File Reference

Cryptographic helpers for OAuth PKCE, API keys, and token encryption. More...

#include <string>
#include <vector>
#include <cstdint>
#include <mantisbase/core/types.h>
Include dependency graph for crypto_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mb

Functions

MANTISBASE_API bool mb::initWolfSsl ()
MANTISBASE_API std::string mb::generateSecureRandom (size_t length)
MANTISBASE_API std::string mb::sha256Hex (const std::string &input)
MANTISBASE_API std::string mb::base64UrlEncode (const std::vector< uint8_t > &data)
MANTISBASE_API std::string mb::base64UrlEncode (const std::string &data)
MANTISBASE_API std::vector< uint8_t > mb::base64UrlDecode (const std::string &encoded)
MANTISBASE_API std::string mb::generatePKCEVerifier (size_t length=43)
MANTISBASE_API std::string mb::generatePKCEChallenge (const std::string &verifier)
MANTISBASE_API std::string mb::aes256GcmEncrypt (const std::string &plaintext, const std::string &key)
MANTISBASE_API std::string mb::aes256GcmDecrypt (const std::string &ciphertext, const std::string &key)

Detailed Description

Cryptographic helpers for OAuth PKCE, API keys, and token encryption.

Wraps WolfSSL-backed primitives used by MbOAuthMgr and related auth flows.