9#ifndef BOTAN_P11_MECHANISM_H_
10#define BOTAN_P11_MECHANISM_H_
14#include <botan/mem_ops.h>
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;
void set_ecdh_salt(const uint8_t salt[], size_t salt_len)
static MechanismWrapper create_rsa_sign_mechanism(std::string_view padding)
size_t padding_size() const
static MechanismWrapper create_ecdh_mechanism(std::string_view params)
MechanismType mechanism_type() const
static MechanismWrapper create_rsa_crypt_mechanism(std::string_view padding)
static MechanismWrapper create_ecdsa_mechanism(std::string_view hash)
MechanismWrapper(MechanismType mechanism_type)
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)
CK_MECHANISM_TYPE mechanism
Holds the mechanism parameters for OAEP, PSS and ECDH.
RsaPkcsPssParams pss_params
Ecdh1DeriveParams ecdh_params
RsaPkcsOaepParams oaep_params