9#ifndef BOTAN_P11_MECHANISM_H_
10#define BOTAN_P11_MECHANISM_H_
14#include <botan/mem_ops.h>
35 static MechanismWrapper create_rsa_crypt_mechanism(std::string_view padding);
66 m_parameters->ecdh_params.pSharedData =
const_cast<uint8_t*
>(salt);
67 m_parameters->ecdh_params.ulSharedDataLen =
static_cast<Ulong>(salt_len);
76 m_parameters->ecdh_params.pPublicData =
const_cast<uint8_t*
>(other_key);
77 m_parameters->ecdh_params.ulPublicDataLen =
static_cast<Ulong>(other_key_len);
99 std::shared_ptr<MechanismParameters> m_parameters;
100 size_t m_padding_size = 0;
#define BOTAN_PUBLIC_API(maj, min)
void set_ecdh_salt(const uint8_t salt[], size_t salt_len)
size_t padding_size() const
MechanismType mechanism_type() const
void set_ecdh_other_key(const uint8_t other_key[], size_t other_key_len)
int(* final)(unsigned char *, CTX *)
constexpr void clear_mem(T *ptr, size_t n)
Holds the mechanism parameters for OAEP, PSS and ECDH.
RsaPkcsPssParams pss_params
Ecdh1DeriveParams ecdh_params
RsaPkcsOaepParams oaep_params