Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
crypto_aes_kw.h
1#ifndef SOURCEMETA_CORE_CRYPTO_AES_KW_H_
2#define SOURCEMETA_CORE_CRYPTO_AES_KW_H_
3
4#ifndef SOURCEMETA_CORE_CRYPTO_EXPORT
5#include <sourcemeta/core/crypto_export.h>
6#endif
7
8#include <optional> // std::optional
9#include <string> // std::string
10#include <string_view> // std::string_view
11
12namespace sourcemeta::core {
13
29auto SOURCEMETA_CORE_CRYPTO_EXPORT aes_key_wrap(
30 const std::string_view key_encryption_key, const std::string_view key)
31 -> std::optional<std::string>;
32
49auto SOURCEMETA_CORE_CRYPTO_EXPORT aes_key_unwrap(
50 const std::string_view key_encryption_key,
51 const std::string_view wrapped_key) -> std::optional<std::string>;
52
53} // namespace sourcemeta::core
54
55#endif
auto SOURCEMETA_CORE_CRYPTO_EXPORT aes_key_wrap(const std::string_view key_encryption_key, const std::string_view key) -> std::optional< std::string >
auto SOURCEMETA_CORE_CRYPTO_EXPORT aes_key_unwrap(const std::string_view key_encryption_key, const std::string_view wrapped_key) -> std::optional< std::string >