1#ifndef SOURCEMETA_CORE_JOSE_ENCRYPT_H_
2#define SOURCEMETA_CORE_JOSE_ENCRYPT_H_
4#ifndef SOURCEMETA_CORE_JOSE_EXPORT
5#include <sourcemeta/core/jose_export.h>
8#include <sourcemeta/core/jose_jwk.h>
10#include <sourcemeta/core/json.h>
16namespace sourcemeta::core {
45SOURCEMETA_CORE_JOSE_EXPORT
47 const JWK &key) -> std::optional<std::string>;
SOURCEMETA_CORE_JOSE_EXPORT auto jwe_encrypt(const JSON &header, const std::string_view plaintext, const JWK &key) -> std::optional< std::string >