1#ifndef SOURCEMETA_CORE_CRYPTO_RSA_OAEP_H_
2#define SOURCEMETA_CORE_CRYPTO_RSA_OAEP_H_
4#ifndef SOURCEMETA_CORE_CRYPTO_EXPORT
5#include <sourcemeta/core/crypto_export.h>
8#include <sourcemeta/core/crypto_sign.h>
9#include <sourcemeta/core/crypto_verify.h>
16namespace sourcemeta::core {
44 const std::string_view plaintext) -> std::optional<std::string>;
62 const std::string_view ciphertext) -> std::optional<std::string>;
auto SOURCEMETA_CORE_CRYPTO_EXPORT rsa_oaep_decrypt(const PrivateKey &key, const RSAOAEPHash hash, const std::string_view ciphertext) -> std::optional< std::string >
RSAOAEPHash
Definition crypto_rsa_oaep.h:21
auto SOURCEMETA_CORE_CRYPTO_EXPORT rsa_oaep_encrypt(const PublicKey &key, const RSAOAEPHash hash, const std::string_view plaintext) -> std::optional< std::string >
@ SHA1
The SHA-1 hash function, selecting RSA-OAEP.
Definition crypto_rsa_oaep.h:23
@ SHA256
The SHA-256 hash function, selecting RSA-OAEP-256.
Definition crypto_rsa_oaep.h:25