
% Uncomment the following 2 lines and comment out the line following them if you want the slides in a handout format
 
\documentclass[11pt,slidestop,compress,mathserif,red,table,handout]{beamer}
\mode<handouts>{}

%\documentclass[[24pt,slidestop,compress,red,table]{beamer}

\usepackage{pythonhighlight}
\usepackage{amssymb}
\usepackage{multirow}

\def\ojoin{\setbox0=\hbox{$\bowtie$}%
  \rule[-.02ex]{.25em}{.4pt}\llap{\rule[\ht0]{.25em}{.4pt}}}
\def\leftouterjoin{\mathbin{\ojoin\mkern-5.8mu\bowtie}}
\def\rightouterjoin{\mathbin{\bowtie\mkern-5.8mu\ojoin}}
\def\fullouterjoin{f\mathbin{\ojoin\mkern-5.8mu\bowtie\mkern-5.8mu\ojoin}}


\usepackage{color}
\usepackage{marvosym}
\usepackage{wasysym} 
\usepackage{enumerate}
\usepackage{verbatim}
\usepackage{alltt}
\usepackage{dirtytalk}
\usepackage{fontawesome}
\usepackage{arydshln}
\usepackage{xcolor}  
\usepackage{tikz}
\usepackage{listings}

\definecolor{Blue}{rgb}{0.01, 0.28, 1.0}
\definecolor{Red}{rgb}{0.89, 0.0, 0.13}
\definecolor{Green}{rgb}{0.09, 0.45, 0.27}
\definecolor{awesome}{rgb}{1.0, 0.13, 0.32}
\definecolor{cadmiumgreen}{rgb}{0.0, 0.42, 0.24}
\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}
\definecolor{cobalt}{rgb}{0.0, 0.28, 0.67}
\definecolor{darkscarlet}{rgb}{0.34, 0.01, 0.1}
\definecolor{harvardcrimson}{rgb}{0.79, 0.0, 0.09}
\definecolor{lavendermist}{rgb}{0.9, 0.9, 0.98}
\definecolor{brown}{rgb}{0.65, 0.16, 0.16}
\definecolor{LightCyan}{rgb}{0.88,1,1}
\definecolor{cadmiumgreen}{rgb}{0.0, 0.42, 0.24}
\definecolor{huntergreen}{rgb}{0.21, 0.37, 0.23}
\definecolor{tyrianpurple}{rgb}{0.4, 0.01, 0.24}
\definecolor{darkscarlet}{rgb}{0.34, 0.01, 0.1}
\definecolor{lavenderblue}{rgb}{0.8, 0.8, 1.0}
\definecolor{britishracinggreen}{rgb}{0.0, 0.26, 0.15}

\usefonttheme{serif}
\usefonttheme{structuresmallcapsserif}
\beamertemplatetransparentcovereddynamicmedium

\usefonttheme{professionalfonts}
\usepackage[english]{babel}

\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{verbatim}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pgf}
\usepackage{xcolor,colortbl}
\usepackage{graphicx}
\usepackage{tikz}
%\usepackage{tikz-uml}
\usepackage{tikz-er2}
\usepackage[simplified]{pgf-umlcd}
\usepackage{marvosym}
\usetikzlibrary{er,positioning}
\usetikzlibrary{shadows}
\usetikzlibrary{arrows,shapes,positioning,shadows,trees}
\usepackage{arydshln}
\newcommand{\HH}{\mathcal{H}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\myindent}{~~~~~~}
\newcommand{\myindentt}{~~~~~~~~~~}
\newcommand{\algindent}{~~}
\newcommand{\keyw}[1]{\textbf{#1}}
\newcommand{\SQLkeyw}[1]{{\bf\texttt{#1}}}
\newcommand{\sqlkeyw}[1]{{\SQLkeyw{#1}}}
\newcommand{\objname}[1]{{\texttt{#1}}}

\newcommand{\headw}[1]{\textcolor{brown}{\textbf{#1}}}
\newcommand{\subheadw}[1]{\textcolor{cobalt}{\bf{#1}}}
\newcommand{\headdw}[1]{\textcolor{brown}{{\bf #1}}}

\newcommand{\subheadwo}[1]{\textcolor{cobalt}{{#1}}}
\newcommand{\headdwo}[1]{\textcolor{brown}{{#1}}}

\newcommand{\intuitionhead}{
\textbf{\textcolor{orange}{\faLightbulbO}\ \textcolor{orange}{\large Intuition:~}}} 
\newcommand{\notehead}{\textcolor{red}{\textbf{Note:~}}}

\newcommand{\entitystyle}{}
\newcommand{\nullcom}{Null}


\newcommand{\PK}{\mathsf{PK}}
\newcommand{\VK}{\mathsf{VK}}
\newcommand{\SK}{\mathsf{SK}}
\newcommand{\ik}{\mathsf{IK}}
\newcommand{\td}{\mathsf{td}}



\newcommand{\remw}{\textcolor{harvardcrimson}{\bf Note:~}}
\newcommand{\remws}{\textcolor{harvardcrimson}{\bf Notes:~}}
\newcommand{\examw}{\textcolor{darkscarlet}{\underline{Example:}~}}
\newcommand{\examwbul}{\textcolor{darkscarlet}{$\bullet$ \underline{Example:}~}}
\newcommand{\examsw}[1]{\textcolor{cobalt}{$\bullet$~\underline{#1}}}
\newcommand{\qw}[1]{\textcolor{red}{#1}}
\newcommand{\examwn}[1]{\textcolor{cobalt}{\underline{Example #1:~}}}
\newcommand{\assert}[1]{\textcolor{red}{#1}}
\newcommand{\listep}[1]{\emph{#1}}
\newcommand{\libox}[1]{\colorbox{lavendermist}{#1}}
\newcommand{\loopstyle}[1]{\underline{#1}}
\newcolumntype{a}{>{\columncolor{lavendermist}}c}
\newcolumntype{b}{>{\columncolor{lavendermist}}{|c|}}
\newcommand{\bigO}{\mathcal{O}}
\newcommand{\rel}{\mathcal{R}}
\newcommand{\relcom}[1]{\texttt{#1}}
\newcommand{\attcom}[1]{\texttt{#1}}


\newcommand{\yes}{\textcolor{cadmiumgreen}{\Large$\checkmark$}}

\newcommand{\no}{\textcolor{cadmiumgreen}{\textcolor{red}{\bf\Large$\times$}}}

\newcommand{\cardin}[1]{\textcolor{red}{#1}}
\newcommand{\shrinkffigga}{\fontsize{7.6}{10}\selectfont}
\newcommand{\shrinkffigg}{\fontsize{7.6}{10}\selectfont}
\newcommand{\shrinkfig}{\fontsize{8}{10}\selectfont}
\newcommand{\shrinkfigg}{\fontsize{9}{10}\selectfont}
\newcommand{\shrinkfiggg}{\fontsize{8}{10}\selectfont}
\newcommand{\relmul}{\fontsize{7.5}{10}\selectfont}% relationship multiplicity


\newcommand{\shrinkffig}{\fontsize{4}{10}\selectfont}
\newcommand{\sshrinkfig}{\fontsize{8.5}{10}\selectfont}
\newcommand{\shrinksml}{\fontsize{4}{10}\selectfont}

\newcommand{\shrinksmll}{\fontsize{4.3}{10}\selectfont}


\newcommand{\headcom}{\headdwo{\small $\blacksquare$~}}
\newcommand{\equasn}{:=}

\def\lf{\left\lfloor}
\def\rf{\right\rfloor}
\providecommand{\myfloor}[1]{\left \lfloor #1 \right \rfloor }
\providecommand{\myceiling}[1]{\left \lceil #1 \right \rceil }



\setbeamerfont{frametitle}{size={\Large}} %\Large size for frame titles
\setbeamercolor{frametitle}{fg=blue!70!black!70!white}
% Create the shaded title bar
\newcommand{\deftitlebar}[5]{\pgfdeclarehorizontalshading{frametitlebarhshad}{#1}{color(#2)=(#3); color(#4)=(#5)}}
\deftitlebar{0.01\paperheight}{0\paperwidth}{black}{\the\paperwidth}{white} 
\setbeamertemplate{frametitle}
{
	\hspace*{-0.035\paperwidth} \vbox{\insertframetitle}\par
	\hspace*{-0.045\paperwidth}\pgfuseshading{frametitlebarhshad}
}


\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize subitem}[square] 



\author[]{}
\institute
{
\vspace{-4mm}

~\\~\\
{Dr. Essam Ghadafi}\\~\\~\\

}

\date[]{}

\setbeamercovered{transparent=2.5}

\newcolumntype{B}{>{\centering\arraybackslash} m{0.08\linewidth} }
\newcolumntype{E}{ >{\arraybackslash} m{0.18\linewidth} }
\newcolumntype{C}{ >{\arraybackslash} m{0.287\linewidth} }
\newcolumntype{D}{ >{\arraybackslash} m{0.10\linewidth} }
\newcolumntype{A}{ >{\centering\arraybackslash} m{0.21\linewidth} }




\let\textmdorig\textmd
\let\textscorig\textsc
\let\textttorig\texttt

\usepackage{lmodern}
\usepackage[T1]{fontenc}


\renewcommand<>{\textmd}[1]{%
  \only#2{\textmdorig{#1}}%
}
\renewcommand<>{\textsc}[1]{%
  \only#2{\textscorig{#1}}%
}
\renewcommand<>{\texttt}[1]{%
  \only#2{\textttorig{#1}}%
}
\setbeamercovered{invisible}



\usetikzlibrary{shapes,arrows}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.shapes}
\usetikzlibrary{decorations}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{positioning}
 \usetikzlibrary{calc} 
%\usepackage{tikz-uml}
\usepackage{tabularx,booktabs} 
\usepackage{atbegshi}
\newcommand\tikzmark[2]{%
\tikz[remember picture,baseline] \node[inner sep=2pt,outer sep=0] (#1){#2};%
}

\newcommand\link[2]{%
\begin{tikzpicture}[remember picture, overlay, >=stealth, shift={(0,0)}]
  \draw[-] (#1) to (#2);
\end{tikzpicture}%
}
\usetikzlibrary{positioning,matrix}

\tikzset{ 
    table/.style={
        matrix of nodes,
        row sep=-\pgflinewidth,
        column sep=-\pgflinewidth,
        nodes={rectangle,text width=3em,align=center},
        text depth=1.25ex,
        text height=2.5ex,
        nodes in empty cells
    },
}

\usepackage{textcomp}


\renewcommand{\ttdefault}{pcr}
\usepackage{tikz}
\usetikzlibrary{calc}

\usepackage{textcomp}
\usetikzlibrary{shapes,arrows}
\usepackage{tcolorbox}
\usepackage{rotating}	
\usepackage{tikz}

\usepackage[demo]{tikzpeople}
\usepackage[OT1]{fontenc}
\usepackage{hyperref}
\usepackage{microtype}
\usepackage{xspace}
\usepackage[title]{appendix}
\usetikzlibrary{shapes.callouts}

\usetikzlibrary{positioning}
\usetikzlibrary{shapes}

\usetikzlibrary{crypto.symbols}
\tikzset{shadows=no}     

\usetikzlibrary{crypto.symbols}
\tikzset{shadows=no}      


\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}
\definecolor{darkblue}{rgb}{0.2, 0.4, 0.8}  % Dark blue
\definecolor{darkred}{rgb}{0.9, 0, 0}   % Dark re


\newsavebox{\mysavebox}
 \tikzstyle{comment}=[rectangle, draw=red!50!black!100, fill=red!20,
        text centered, anchor=north, text=black, text width=2cm]



\newtcbox{\mybox}{nobeforeafter,colframe=red,colback=red!5!white,boxrule=0.5pt,arc=4pt,
  boxsep=0pt,left=6pt,right=6pt,top=6pt,bottom=6pt,tcbox raise base}
  
  
\newtcbox{\myboxcon}{nobeforeafter,colframe=blue,colback=blue!5!white,boxrule=0.5pt,arc=4pt,
  boxsep=0pt,left=6pt,right=6pt,top=6pt,bottom=6pt,tcbox raise base}
  
  \usepackage{pgfpages}
\mode<handout>{\setbeamercolor{background canvas}{bg=black!80!black,bg=white}}
\mode<handout>{\usebeamercolor[fg]{normal text,fg=black}}

\mode<handout>{
\pgfpagesuselayout{4 on 1}[a4paper, landscape,border shrink=5mm]
\PassOptionsToPackage{gray}{xcolor}
\pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{3}{border code=\pgfusepath{stroke}}
\pgfpageslogicalpageoptions{4}{border code=\pgfusepath{stroke}}
}





\usetikzlibrary{decorations.text}
\definecolor{mygray}{RGB}{208,208,208}
\definecolor{mymagenta}{RGB}{226,0,116}
\newcommand*{\mytextstyle}{\sffamily\Large\bfseries\color{black!85}}
\newcommand{\arcarrow}[3]{%
   \pgfmathsetmacro{\rin}{1.7}
   \pgfmathsetmacro{\rmid}{2.2}
   \pgfmathsetmacro{\rout}{2.7}
   \pgfmathsetmacro{\astart}{#1}
   \pgfmathsetmacro{\aend}{#2}
   \pgfmathsetmacro{\atip}{5}
   \fill[mygray, very thick, minimum width=16.5cm] (\astart+\atip:\rin)
                         arc (\astart+\atip:\aend:\rin)
      -- (\aend-\atip:\rmid)
      -- (\aend:\rout)   arc (\aend:\astart+\atip:\rout)
      -- (\astart:\rmid) -- cycle;
   \path[
      decoration = {
         text along path,
         text = {|\mytextstyle|#3},
         text align = {align = center},
         raise = -1.0ex
      },
      decorate
   ](\astart+\atip:\rmid) arc (\astart+\atip:\aend+\atip:\rmid);
}


\usepackage{smartdiagram}
\usesmartdiagramlibrary{additions}
\usetikzlibrary{fit,shapes.geometric,bending}
\newcounter{sdpic}

\usepackage{ulem}
\let\MakeRobust\relax % 
\usepackage{fixltx2e}
\newcommand{\mat}[1]{\mathbf{#1}}
\newcommand{\lat}{L}
\newcommand{\paral}{\mathcal{P}}
%\newcommand{\vec}[1]{\mathbf{#1}}

\usepackage[default]{lato}
\newcommand{\marcom}[2]{\textcolor{red}{#1: #2}}



\definecolor{outputColor}{rgb}{0.7, 0.13, 0.13} 
\definecolor{inputColor}{rgb}{0.1, 0.6, 0.8} % Light blue/teal

\newcommand{\inputText}{\textbf{\textcolor{inputColor}{Input:~}} }
\newcommand{\outputText}{\textbf{\textcolor{outputColor}{Task:~}}}
\newcommand{\Gamec}{\text{Game}}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{textcomp}        
\usetikzlibrary{decorations.pathreplacing}
\usepackage[default]{lato}

\definecolor{mypeach}{rgb}{1.0, 0.8549, 0.7254}  
\definecolor{lightyellow}{rgb}{1.0, 1.0, 0.8784}  % Light yellow
\definecolor{lightgreen}{rgb}{0.5647, 0.9333, 0.5647}  % Light green
\renewcommand{\vec}[1]{\mathbf{#1}}


\newcommand{\KeyGen}{\mathsf{KeyGen}}
\newcommand{\Sign}{\mathsf{Sign}}
\newcommand{\Verify}{\mathsf{Verify}}
