Template Class PerturbationVector

Template Parameter Order

  1. class Element

Class Documentation

template<class Element>
class lbcrypto::PerturbationVector

Container for the perturbation vector produced by the offline stage of trapdoor sampling (RLWETrapdoorUtility::GaussSampOffline) and consumed by the online stage (GaussSampOnline).

Template Parameters

Element – ring element

Public Functions

inline PerturbationVector()

Default constructor; holds no vector.

inline explicit PerturbationVector(std::shared_ptr<Matrix<Element>> &pvector)

Constructor for the perturbation vector.

Parameters

pvector – column matrix of ring elements holding the perturbation vector

inline void SetVector(std::shared_ptr<Matrix<Element>> &pvector)

Mutator for the perturbation vector.

Parameters

pvector – column matrix of ring elements holding the perturbation vector

inline const std::shared_ptr<Matrix<Element>> &GetVector() const

Accessor for the perturbation vector.

Returns

column matrix of ring elements holding the perturbation vector