Botan 3.13.0
Crypto and TLS for C&
Botan::McEliece_PrivateKeyInternal Class Referencefinal

#include <mce_internal.h>

Public Member Functions

size_t code_length () const
size_t codimension () const
size_t dimension () const
const polyn_gf2mgoppa_polyn () const
const std::vector< polyn_gf2m > & goppa_polyn_vec () const
const std::vector< uint32_t > & H_coeffs () const
const std::vector< gf2m > & Linv () const
 McEliece_PrivateKeyInternal (std::vector< polyn_gf2m > g, std::vector< polyn_gf2m > sqrtmod, std::vector< gf2m > support_inverse, std::vector< uint32_t > parity_check_coeffs, size_t codimension, size_t dimension)
size_t message_word_bit_length () const
const std::vector< polyn_gf2m > & sqrtmod () const

Detailed Description

Definition at line 55 of file mce_internal.h.

Constructor & Destructor Documentation

◆ McEliece_PrivateKeyInternal()

Botan::McEliece_PrivateKeyInternal::McEliece_PrivateKeyInternal ( std::vector< polyn_gf2m > g,
std::vector< polyn_gf2m > sqrtmod,
std::vector< gf2m > support_inverse,
std::vector< uint32_t > parity_check_coeffs,
size_t codimension,
size_t dimension )
inline

Definition at line 57 of file mce_internal.h.

62 :
63 m_g(std::move(g)),
64 m_sqrtmod(std::move(sqrtmod)),
65 m_Linv(std::move(support_inverse)),
66 m_coeffs(std::move(parity_check_coeffs)),
67 m_codimension(codimension),
68 m_dimension(dimension) {}
const std::vector< polyn_gf2m > & sqrtmod() const

References codimension(), dimension(), and sqrtmod().

Member Function Documentation

◆ code_length()

size_t Botan::McEliece_PrivateKeyInternal::code_length ( ) const
inline

Definition at line 84 of file mce_internal.h.

84{ return m_dimension + m_codimension; }

Referenced by Botan::mceliece_decrypt(), and Botan::mceliece_decrypt().

◆ codimension()

size_t Botan::McEliece_PrivateKeyInternal::codimension ( ) const
inline

Definition at line 80 of file mce_internal.h.

80{ return m_codimension; }

Referenced by Botan::mceliece_decrypt(), and McEliece_PrivateKeyInternal().

◆ dimension()

size_t Botan::McEliece_PrivateKeyInternal::dimension ( ) const
inline

Definition at line 82 of file mce_internal.h.

82{ return m_dimension; }

Referenced by Botan::mceliece_decrypt(), and McEliece_PrivateKeyInternal().

◆ goppa_polyn()

const polyn_gf2m & Botan::McEliece_PrivateKeyInternal::goppa_polyn ( ) const
inline

Definition at line 70 of file mce_internal.h.

70{ return m_g[0]; }

Referenced by Botan::mceliece_decrypt().

◆ goppa_polyn_vec()

const std::vector< polyn_gf2m > & Botan::McEliece_PrivateKeyInternal::goppa_polyn_vec ( ) const
inline

Definition at line 72 of file mce_internal.h.

72{ return m_g; }

◆ H_coeffs()

const std::vector< uint32_t > & Botan::McEliece_PrivateKeyInternal::H_coeffs ( ) const
inline

Definition at line 78 of file mce_internal.h.

78{ return m_coeffs; }

Referenced by Botan::mceliece_decrypt().

◆ Linv()

const std::vector< gf2m > & Botan::McEliece_PrivateKeyInternal::Linv ( ) const
inline

Definition at line 76 of file mce_internal.h.

76{ return m_Linv; }

Referenced by Botan::mceliece_decrypt().

◆ message_word_bit_length()

size_t Botan::McEliece_PrivateKeyInternal::message_word_bit_length ( ) const
inline

Definition at line 86 of file mce_internal.h.

86{ return m_dimension; }

Referenced by Botan::mceliece_decrypt().

◆ sqrtmod()

const std::vector< polyn_gf2m > & Botan::McEliece_PrivateKeyInternal::sqrtmod ( ) const
inline

Definition at line 74 of file mce_internal.h.

74{ return m_sqrtmod; }

Referenced by Botan::mceliece_decrypt(), and McEliece_PrivateKeyInternal().


The documentation for this class was generated from the following file: