\tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt        

\makeatletter
\def\input@path{{inc/}{../inc}{../../inc/}}
\makeatother

\input{mv_colors.inc.tex}

\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]
\path (0,1095);
\tikzset{
	op/.style={fill=operationcolor  ,fill opacity=1,general shadow={fill={rgb, 255:red, 155; green, 155; blue, 155 }  ,shadow xshift=\shadowshift,shadow yshift=\shadowshift, opacity=1 }},
	aop/.style={color=black  ,draw opacity=1,fill=atomicopcolor  ,fill opacity=1,rounded corners=10pt,general shadow={fill={rgb, 255:red, 155; green, 155; blue, 155 }  ,shadow xshift=\shadowshift,shadow yshift=\shadowshift, opacity=1 }},
	astyle/.style={-{Latex[length=2.5mm,width=1.5mm]},semithick},
	revastyle/.style={{Latex[length=2.5mm,width=1.5mm]}-,semithick},
}

% Hexagon
\draw [op]  (1047.25,629.75) -- (804.63,1049.99) -- (319.38,1049.99) -- (76.75,629.75) -- (319.37,209.51) -- (804.63,209.51) -- cycle ;
% padding
\draw  [aop] (197,433) rectangle +(730,63) node[pos=.5,scale=2] {padding and splitting};
\draw [revastyle ]   (197,454) -- +(-150,0)  node[scale=2,left] {\begin{minipage}{3.5cm}\large\raggedleft $[C1], [C2],$ $R_t, s$ $blocksize\left( E^K\right)$ \end{minipage}};
% Reed-Solomon
\draw  [aop] (197,571) rectangle +(730,63) node  [pos=.5,xscale=2,yscale=2] {Reed-Solomon ($m$ of $n$)};;
\draw [revastyle]   (197,600) -- +(-150,0-68)  node[scale=2,left] {\large $m, n$};
\draw [revastyle]   (197,600) -- +(-150,-68)  node[scale=2,left] {\large $m, n$};
\draw [revastyle]   (197,464) -- +(-150,068)  ;
\draw [revastyle]   (197,610) -- +(-150,0)  node[scale=2,left] {\large $\omega$};
% Encryption
\draw  [aop] (210,731) rectangle +(80,80) node  [pos=.5,xscale=2,yscale=2] {$E^{K_{1}}$};;
% Rounded Rect [id:dp39595322897920915] 
\draw  [aop] (320,731) rectangle +(80,80) node  [pos=.5,xscale=2,yscale=2] {$E^{K_{2}}$};;
% Rounded Rect [id:dp9203187961126249] 
\draw  [aop] (710,731) rectangle +(80,80) node  [pos=.5,xscale=2,yscale=2] {$E^{K_{n-1}}$};;
% Rounded Rect [id:dp04533791276255883] 
\draw  [aop] (825,731) rectangle +(80,80) node  [pos=.5,xscale=2,yscale=2] {$E^{K_{n}}$};;
% Encryption parameters
\draw [color=black,draw opacity=1,Latex- ]   (210,771) -- +(-165,0)  node[scale=2,left] {\large $E, K_{1\ldots n}$};
% Straight Lines [id:da558112223996015] 
\draw [astyle]   (249.25,635) -- (249.25,732.5)node[pos=.5,anchor=west,scale=2] {$C_1$} ;
\draw [astyle]   (355.5,635) -- (355.5,732.5)    node[pos=.5,anchor=west,scale=2] {$C_2$} ;
\draw [astyle]   (747.5,635) -- (747.5,732.5)    node[pos=.5,anchor=west,scale=2] {$C_{n-1}$}  ;
\draw [astyle]   (864.5,635) -- (864.5,732.5)    node[pos=.5,anchor=west,scale=2] {$C_{n}$}  ;
% Straight Lines [id:da4420452948696929] 
\draw [astyle]   (249.25,814.5) -- (249.25,880) node[pos=.5,anchor=west,scale=2] {$O_1$} ;;
\draw [astyle]   (355.5,814.5) -- (355.5,880) node[pos=.5,anchor=west,scale=2] {$O_2$} ;
% Straight Lines [id:da9824431567233618] 
\draw [astyle]   (864.5,814.5) -- (864.5,880) node[pos=.5,anchor=west,scale=2] {$O_n$} ;
% Straight Lines [id:da9786342569348638] 
\draw [astyle]   (747.5,814.5) -- (747.5,880) node[pos=.5,anchor=west,scale=2] {$O_{n-1}$} ;
% Straight Lines [id:da6048645248706304] 
\draw [astyle]   (286.5,497) -- (286.5,571) node[pos=.5,anchor=west,scale=2] {$B_1$} ;
% Straight Lines [id:da9292810965517964] 
\draw [astyle]   (427.5,497) -- (427.5,571) node[pos=.5,anchor=west,scale=2] {$B_2$}  ;
% Straight Lines [id:da1804486569548669] 
\draw [astyle]   (668.5,497) -- (668.5,571) node[pos=.5,anchor=west,scale=2] {$B_{n-m-1}$} ;
% Straight Lines [id:da9933288491058514] 
\draw [astyle]   (808.5,497) -- (808.5,571) node[pos=.5,anchor=west,scale=2] {$B_{n-m}$} ;
% Straight Lines [id:da7320413335979341] 
\draw [astyle]   (560.5,379) -- (560.5,433) node[pos=.5,anchor=west,scale=2] {$I$};
% Dotted line between encryption blocks
\draw [color=black,draw opacity=1,line width=1.5,dash pattern={on 1.5pt off 7.51pt}]  (475,532) -- (655,532) ;
\draw [color=black,draw opacity=1,line width=1.5,dash pattern={on 1.5pt off 7.51pt}]  (420,775.25) -- (676.5,775.25) ;

% Text Node
\draw (561.25,361.5) node  [xscale=2,yscale=2] [align=left] {Input};
% Text Node
\draw (561.25,915.5) node  [xscale=2,yscale=2] [align=left] {Output};


\end{tikzpicture}