Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
jose_encrypt.h
1#ifndef SOURCEMETA_CORE_JOSE_ENCRYPT_H_
2#define SOURCEMETA_CORE_JOSE_ENCRYPT_H_
3
4#ifndef SOURCEMETA_CORE_JOSE_EXPORT
5#include <sourcemeta/core/jose_export.h>
6#endif
7
8#include <sourcemeta/core/jose_jwk.h>
9
10#include <sourcemeta/core/json.h>
11
12#include <optional> // std::optional
13#include <string> // std::string
14#include <string_view> // std::string_view
15
16namespace sourcemeta::core {
17
45SOURCEMETA_CORE_JOSE_EXPORT
46auto jwe_encrypt(const JSON &header, const std::string_view plaintext,
47 const JWK &key) -> std::optional<std::string>;
48
49} // namespace sourcemeta::core
50
51#endif
Definition jose_jwk.h:40
SOURCEMETA_CORE_JOSE_EXPORT auto jwe_encrypt(const JSON &header, const std::string_view plaintext, const JWK &key) -> std::optional< std::string >
Definition json_value.h:39