\renewcommand{\vec}[1]{\ensuremath{\mathbf{#1}}}
\newcommand{\mat}[1]{\ensuremath{\vec{#1}}\xspace}

\newcommand{\hz}{\ensuremath{\vec{h}_0}\xspace}
\newcommand{\ho}{\ensuremath{\vec{h}_1}\xspace}
\newcommand{\var}[1]{\texttt{\upshape #1}\xspace}
\newcommand{\cO}{\ensuremath{\mathcal{O}}}
\newcommand{\EE}{\ensuremath{\mathop{\mathbb{E}}}\xspace}


\newcommand{\Fb}{\ensuremath{\mathbb{F}_2}\xspace}
\newcommand{\code}{\ensuremath{\mathcal{C}}\xspace}
\newcommand{\cP}{\ensuremath{\mathcal{P}}}
\newcommand{\cNP}{\ensuremath{\mathcal{NP}}}
\newcommand{\cNPC}{\ensuremath{\mathcal{NPC}}}
\newcommand{\coNP}{\ensuremath{\text{co}\mathcal{NP}}}
\renewcommand{\bar}[1]{\overline{#1}}

\newcommand{\IND}{\ensuremath{\text{IND}}\xspace}
\newcommand{\OWE}{\ensuremath{\text{OWE}}\xspace}
\newcommand{\NM}{\ensuremath{\text{NM}}\xspace}

\newcommand{\alg}[1]{\ensuremath{\textsc{#1}}}
\newcommand{\sk}{\ensuremath{K_\textsc{Sec}}\xspace}
\newcommand{\pk}{\ensuremath{K_\textsc{Pub}}\xspace}
\newcommand{\WF}{\ensuremath{\mathbf{WF}}}
\newcommand{\comp}{\ensuremath{\prime}}


\newcommand{\PK}{\ensuremath{\mathcal{PK}}}
\newcommand{\SK}{\ensuremath{\mathcal{SK}}}
\newcommand{\CS}{\ensuremath{\mathcal{C}}}
\newcommand{\MS}{\ensuremath{\mathcal{M}}}

\newcommand{\nullity}{\operatorname{nullity}}
\newcommand{\rank}{\operatorname{rank}}
\DeclareMathOperator{\circulant}{Circ}
\DeclareMathOperator{\weight}{w}
\DeclareMathOperator{\dist}{dist}
\DeclareMathOperator{\supp}{sup}
\DeclareMathOperator{\ev}{\mathbb{E}}

\newcommand{\cgbi}{código de Goppa binário e irredutível\xspace}
\newcommand{\goppa}{\ensuremath{\mathcal{G}}\xspace}
\newcommand{\goppair}{\ensuremath{\Gamma(L, g)}\xspace}
\newcommand{\wt}{\ensuremath{\text{wt}}\xspace}

\newcommand{\sH}{\ensuremath{H_\textsc{Sec}}}
\newcommand{\pH}{\ensuremath{H_\textsc{Pub}}}

\makeatletter
\DeclareRobustCommand{\rvdots}{%
  \vbox{
    \baselineskip4\p@\lineskiplimit\z@
    \kern-\p@
    \hbox{.}\hbox{.}\hbox{.}
  }}
\makeatother
