\documentclass[11pt,twoside]{article}\makeatletter

\IfFileExists{xcolor.sty}%
  {\RequirePackage{xcolor}}%
  {\RequirePackage{color}}
\usepackage{colortbl}
\usepackage{wrapfig}
\usepackage{ifxetex}
\ifxetex
  \usepackage{fontspec}
  \usepackage{xunicode}
  \catcode`⃥=\active \def⃥{\textbackslash}
  \catcode`❴=\active \def❴{\{}
  \catcode`❵=\active \def❵{\}}
  \def\textJapanese{\fontspec{Noto Sans CJK JP}}
  \def\textChinese{\fontspec{Noto Sans CJK SC}}
  \def\textKorean{\fontspec{Noto Sans CJK KR}}
  \setmonofont{DejaVu Sans Mono}
  
\else
  \IfFileExists{utf8x.def}%
   {\usepackage[utf8x]{inputenc}
      \PrerenderUnicode{–}
    }%
   {\usepackage[utf8]{inputenc}}
  \usepackage[english]{babel}
  \usepackage[T1]{fontenc}
  \usepackage{float}
  \usepackage[]{ucs}
  \uc@dclc{8421}{default}{\textbackslash }
  \uc@dclc{10100}{default}{\{}
  \uc@dclc{10101}{default}{\}}
  \uc@dclc{8491}{default}{\AA{}}
  \uc@dclc{8239}{default}{\,}
  \uc@dclc{20154}{default}{ }
  \uc@dclc{10148}{default}{>}
  \def\textschwa{\rotatebox{-90}{e}}
  \def\textJapanese{}
  \def\textChinese{}
  \IfFileExists{tipa.sty}{\usepackage{tipa}}{}
\fi
\def\exampleFont{\ttfamily\small}
\DeclareTextSymbol{\textpi}{OML}{25}
\usepackage{relsize}
\RequirePackage{array}
\def\@testpach{\@chclass
 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
  \ifnum \@lastchclass=7 5 \else
   \ifnum \@lastchclass=8 \tw@ \else
    \ifnum \@lastchclass=9 \thr@@
   \else \z@
   \ifnum \@lastchclass = 10 \else
   \edef\@nextchar{\expandafter\string\@nextchar}%
   \@chnum
   \if \@nextchar c\z@ \else
    \if \@nextchar l\@ne \else
     \if \@nextchar r\tw@ \else
   \z@ \@chclass
   \if\@nextchar |\@ne \else
    \if \@nextchar !6 \else
     \if \@nextchar @7 \else
      \if \@nextchar (8 \else
       \if \@nextchar )9 \else
  10
  \@chnum
  \if \@nextchar m\thr@@\else
   \if \@nextchar p4 \else
    \if \@nextchar b5 \else
   \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
   \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}
\gdef\arraybackslash{\let\\=\@arraycr}
\def\@textsubscript#1{{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\def\abbr{}
\def\corr{}
\def\expan{}
\def\gap{}
\def\orig{}
\def\reg{}
\def\ref{}
\def\sic{}
\def\persName{}\def\name{}
\def\placeName{}
\def\orgName{}
\def\textcal#1{{\fontspec{Lucida Calligraphy}#1}}
\def\textgothic#1{{\fontspec{Lucida Blackletter}#1}}
\def\textlarge#1{{\large #1}}
\def\textoverbar#1{\ensuremath{\overline{#1}}}
\def\textquoted#1{‘#1’}
\def\textsmall#1{{\small #1}}
\def\textsubscript#1{\@textsubscript{\selectfont#1}}
\def\textxi{\ensuremath{\xi}}
\def\titlem{\itshape}
\newenvironment{biblfree}{}{\ifvmode\par\fi }
\newenvironment{bibl}{}{}
\newenvironment{byline}{\vskip6pt\itshape\fontsize{16pt}{18pt}\selectfont}{\par }
\newenvironment{citbibl}{}{\ifvmode\par\fi }
\newenvironment{docAuthor}{\ifvmode\vskip4pt\fontsize{16pt}{18pt}\selectfont\fi\itshape}{\ifvmode\par\fi }
\newenvironment{docDate}{}{\ifvmode\par\fi }
\newenvironment{docImprint}{\vskip 6pt}{\ifvmode\par\fi }
\newenvironment{docTitle}{\vskip6pt\bfseries\fontsize{22pt}{25pt}\selectfont}{\par }
\newenvironment{msHead}{\vskip 6pt}{\par}
\newenvironment{msItem}{\vskip 6pt}{\par}
\newenvironment{rubric}{}{}
\newenvironment{titlePart}{}{\par }

\newcolumntype{L}[1]{){\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{){\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{){\raggedleft\arraybackslash}p{#1}}
\newcolumntype{P}[1]{){\arraybackslash}p{#1}}
\newcolumntype{B}[1]{){\arraybackslash}b{#1}}
\newcolumntype{M}[1]{){\arraybackslash}m{#1}}
\definecolor{label}{gray}{0.75}
\def\unusedattribute#1{\sout{\textcolor{label}{#1}}}
\DeclareRobustCommand*{\xref}{\hyper@normalise\xref@}
\def\xref@#1#2{\hyper@linkurl{#2}{#1}}
\begingroup
\catcode`\_=\active
\gdef_#1{\ensuremath{\sb{\mathrm{#1}}}}
\endgroup
\mathcode`\_=\string"8000
\catcode`\_=12\relax

\usepackage[a4paper,twoside,lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in,marginparwidth=0.75in]{geometry}
\usepackage{framed}

\definecolor{shadecolor}{gray}{0.95}
\usepackage{longtable}
\usepackage[normalem]{ulem}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{marginnote}

\renewcommand{\@cite}[1]{#1}


\renewcommand*{\marginfont}{\itshape\footnotesize}

\def\Gin@extensions{.pdf,.png,.jpg,.mps,.tif}

  \pagestyle{fancy}

\usepackage[pdftitle={3D Array Block Rotation Cipher : An Improvement using shift},
 pdfauthor={}]{hyperref}
\hyperbaseurl{}

	 \paperwidth210mm
	 \paperheight297mm
              
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
\clubpenalty=8000
\emergencystretch 3em
\hbadness=4000
\hyphenpenalty=400
\pretolerance=750
\tolerance=2000
\vbadness=4000
\widowpenalty=10000

\renewcommand\section{\@startsection {section}{1}{\z@}%
     {-1.75ex \@plus -0.5ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
     {-1.75ex\@plus -0.5ex \@minus- .2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
     {-1.5ex\@plus -0.35ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\large}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
     {-1ex \@plus-0.35ex \@minus -0.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\normalsize}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
     {1.5ex \@plus1ex \@minus .2ex}%
     {-1em}%
     {\reset@font\normalsize\bfseries}}


\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bfseries \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\@ifundefined{c@section}{\newcounter{section}}{}
\@ifundefined{c@chapter}{\newcounter{chapter}}{}
\newif\if@mainmatter 
\@mainmattertrue
\def\chaptername{Chapter}
\def\frontmatter{%
  \pagenumbering{roman}
  \def\thechapter{\@roman\c@chapter}
  \def\theHchapter{\roman{chapter}}
  \def\thesection{\@roman\c@section}
  \def\theHsection{\roman{section}}
  \def\@chapapp{}%
}
\def\mainmatter{%
  \cleardoublepage
  \def\thechapter{\@arabic\c@chapter}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \pagenumbering{arabic}
  \setcounter{secnumdepth}{6}
  \def\@chapapp{\chaptername}%
  \def\theHchapter{\arabic{chapter}}
  \def\thesection{\@arabic\c@section}
  \def\theHsection{\arabic{section}}
}
\def\backmatter{%
  \cleardoublepage
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \setcounter{secnumdepth}{2}
  \def\@chapapp{\appendixname}%
  \def\thechapter{\@Alph\c@chapter}
  \def\theHchapter{\Alph{chapter}}
  \appendix
}
\newenvironment{bibitemlist}[1]{%
   \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\labelwidth{\@biblabel{#1}}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}%
	}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}%
  {\def\@noitemerr
    {\@latex@warning{Empty `bibitemlist' environment}}%
    \endlist}

\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
\parskip0pt
\parindent1em
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\newenvironment{reflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemsep}{0pt}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\itshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{sansreflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\itemsep}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\upshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{specHead}[2]%
 {\vspace{20pt}\hrule\vspace{10pt}%
  \phantomsection\label{#1}\markright{#2}%

  \pdfbookmark[2]{#2}{#1}%
  \hspace{-0.75in}{\bfseries\fontsize{16pt}{18pt}\selectfont#2}%
  }{}
      \def\TheFullDate{2011-10-05 (revised: 05 October 2011)}
\def\TheID{\makeatother }
\def\TheDate{2011-10-05}
\title{3D Array Block Rotation Cipher : An Improvement using shift}
\author{}\makeatletter 
\makeatletter
\newcommand*{\cleartoleftpage}{%
  \clearpage
    \if@twoside
    \ifodd\c@page
      \hbox{}\newpage
      \if@twocolumn
        \hbox{}\newpage
      \fi
    \fi
  \fi
}
\makeatother
\makeatletter
\thispagestyle{empty}
\markright{\@title}\markboth{\@title}{\@author}
\renewcommand\small{\@setfontsize\small{9pt}{11pt}\abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2\p@
\belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
\def\@listi{\leftmargin\leftmargini
               \topsep 2\p@ plus1\p@ minus1\p@
               \parsep 2\p@ plus\p@ minus\p@
               \itemsep 1pt}
}
\makeatother
\fvset{frame=single,numberblanklines=false,xleftmargin=5mm,xrightmargin=5mm}
\fancyhf{} 
\setlength{\headheight}{14pt}
\fancyhead[LE]{\bfseries\leftmark} 
\fancyhead[RO]{\bfseries\rightmark} 
\fancyfoot[RO]{}
\fancyfoot[CO]{\thepage}
\fancyfoot[LO]{\TheID}
\fancyfoot[LE]{}
\fancyfoot[CE]{\thepage}
\fancyfoot[RE]{\TheID}
\hypersetup{citebordercolor=0.75 0.75 0.75,linkbordercolor=0.75 0.75 0.75,urlbordercolor=0.75 0.75 0.75,bookmarksnumbered=true}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}

\date{}
\usepackage{authblk}

\providecommand{\keywords}[1]
{
\footnotesize
  \textbf{\textit{Index terms---}} #1
}

\usepackage{graphicx,xcolor}
\definecolor{GJBlue}{HTML}{273B81}
\definecolor{GJLightBlue}{HTML}{0A9DD9}
\definecolor{GJMediumGrey}{HTML}{6D6E70}
\definecolor{GJLightGrey}{HTML}{929497} 

\renewenvironment{abstract}{%
   \setlength{\parindent}{0pt}\raggedright
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
   \textcolor{GJBlue}{\large\bfseries\abstractname\space}
}{%   
   \vskip8pt
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
}

\usepackage[absolute,overlay]{textpos}

\makeatother 
      \usepackage{lineno}
      \linenumbers
      
\begin{document}

             \author[1]{Sukhvinder Singh  Deora}

             \author[2]{Dr. Pushpa R.  Suri}

             \affil[1]{  DCSA, Kurukshetra University, NC Institute of Computer Sciences}

\renewcommand\Authands{ and }

\date{\small \em Received: 2 September 2011 Accepted: 24 September 2011 Published: 5 October 2011}

\maketitle


\begin{abstract}
        


This paper on Cipher based on 3D Array Block Rotation is in continuation with our earlier paper titled A cipher based on 3D Array Block Rotation. It discusses a new rotation; lateral shift along with the earlier discussed rotation of the 3D Array block or circular shifting of plates of 3D Array in clockwise direction while enciphering and anticlockwise direction while deciphering. It also discusses the problem of relative bit positioning in the earlier specified algorithm and introduce shift rotations of the blocks as a possible solution to the problem. It uses a key of specified length which can be either transferred with the ciphertext or can be obtained by an agreed upon random bit generator. In all, it is a novel and effective cipher with good randomness property.

\end{abstract}


\keywords{Encoding, Decoding, Block cipher, randomness, Random Number Generator, 3D Array, Confusion-Diffusion, Linear Feedback Shift Rotations (LFSR), p-value}

\begin{textblock*}{18cm}(1cm,1cm) % {block width} (coords) 
\textcolor{GJBlue}{\LARGE Global Journals \LaTeX\ JournalKaleidoscope\texttrademark}
\end{textblock*}

\begin{textblock*}{18cm}(1.4cm,1.5cm) % {block width} (coords) 
\textcolor{GJBlue}{\footnotesize \\ Artificial Intelligence formulated this projection for compatibility purposes from the original article published at Global Journals. However, this technology is currently in beta. \emph{Therefore, kindly ignore odd layouts, missed formulae, text, tables, or figures.}}
\end{textblock*}


\let\tabcellsep& 	 	 		 
\section[{INTRODUCTION}]{INTRODUCTION}\par
ommunication involves conveying the information in one form or other to the intended receiver, using some medium. Internet, the fastest and most widely used medium of electronic information exchange, is also used for the same. However for the security of information, a technique of data encryption/ decryption is used in most of the cases. 
\section[{II.}]{II.} 
\section[{CIPHER}]{CIPHER}\par
Cipher is a message written in a secret code. In a cryptographic system some specific units of plaintext, usually letters, are arbitrarily transposed or substituted according to a predetermined code (encoding technique) to convert it to a cipher text \hyperref[b0]{[1]}. 
\section[{Fig.1 : Encoding}]{Fig.1 : Encoding}\par
The ciphertext is then transferred over the nonsecure medium of communication and received by the receiver. The receiver then applies the decoding technique in accordance to the encoding technique to get the actual plaintext communicated to him by the sender. 
\section[{Fig. 2 : Decoding}]{Fig. 2 : Decoding}\par
The basic idea behind any cryptographic algorithm is same, using confusion and diffusion to change the actual information so that it is only the intended user who can decode and understand it. Some World War II ciphers using stuttered rotors are briefly described as natural predecessors \hyperref[b4]{[5]}. There have been algorithms like the Hill Cipher and Vernam Cipher to the DES, AES and A5 algorithms in the literature \hyperref[b0]{[1]}. The strength of these ciphers depends upon key length, processing and the use of operations like simple negation, shift, XOR and substitution \hyperref[b7]{[8]}. 
\section[{III. 3D ARRAY BLOCK CIPHER PROBLEM}]{III. 3D ARRAY BLOCK CIPHER PROBLEM}\par
We have developed an algorithm which encrypts/decrypts the information in the paper titled "A cipher based on 3D Array Block Rotation". We have suggested the use of Plate-wise rotation along X/Y/Z axis, at random, for the diffusion of the bits/text contained in the 3D Array.\par
However, we have noticed that if such a rotation is performed then there is relative bit/char positioning (red dots), equidistant from the centre (magenta dot) in case of odd sized 3D array (see Fig. \hyperref[fig_0]{3}). This relative bit/char positioning can be exploited for decoding of ciphertext produced using 3D Array Rotations as suggested in previous paper. In our current paper, we discuss introduction of circular shift operation, which will remove this positional dependency problem in the 3D Array.  
\section[{OUR IMPROVED ALGORITHM}]{OUR IMPROVED ALGORITHM}\par
In this new version of our cipher based on 3D Array we are proposing the details of key length, number of rounds; which is some multiple of 8, the structure and its two kinds of rotations, the rotation policy as per the sub-keys, k-th iteration details and the overall encryption process shown through various figures and flowcharts.\par
a) The 3D Array Structure We are proposing that the cipher can use a key of length, 8 X Number of Rounds, minimum of 256 bits which will be sufficient to encrypt 4096 data bits. The key may be produced by using some one time pad so that there is a different ciphertext of the same plaintext each time encoding is done. The key can also be generated at the receiver end using agreed upon Random Number Generator or communicated using some highly secure algorithm before transferring the actual data.  We can use a three dimensional array to store the initial plaintext. The plaintext may also be stored as row-major/column major fashion, as agreed between the sender and receiver. Considering the three axis as the axis of rotation, X, Y and Z, as shown in Fig. \hyperref[fig_2]{4}, and each layer as a rotatable plate. We can diffuse the text using clockwise rotation of 90/180/270° of particular plate at a particular axis or using linear shift rotation of the rows of the particular plate.  A three dimensional matrix may be used to store the initial plaintext. There will be three possible axis of rotation as shown in Fig. \hyperref[fig_2]{4}, and axis-wise layers, as shown in Fig. \hyperref[fig_4]{5}, as a rotatable plate as seen from the three different axis of rotation X, Y and Z respectively. 
\section[{c) Operations}]{c) Operations}\par
Diffusion of the text can be done using clockwise rotations (see Fig.  {\ref 6}) or shifting of elements of the plate (see Fig.  {\ref 7}) using clockwise/circular left shift rotations of a particular plate in a particular axis of rotation as per criteria defined below. The rotations can be done using a key of 512 bits for 64 rounds cipher. We may also have variable number of rounds by taking key of appropriate number of bits. Each 8 bits from the LSB side can be used to rotate once. Consider 8 bits as shown: 
\section[{ovember N}]{ovember N}\par
The Plate Number which is to be rotated is straight forward usage of the 4 bits-1, 2, 3, 4 of the subkey, whose value indicates the plate number which is to be rotated. In case of 5-6 bits to be 11, we will rotate in order of X, Y and Z axis, taking 5678 bit value number.\par
The Rotation policy/Number of Rotations can be decided by using 5, 6 bits of the sub-key calculated as described in Table \hyperref[tab_0]{2}: Similarly, bits 7, 8 of the sub-key can be used to decide the Axis of rotation. The two bits can be used for four possible types of selections represented by 00, 01, 10 and 11 as described in Table \hyperref[tab_1]{3}. The entire encryption process may be converted to a finite number of iterative steps. The encryption can be represented by the flowchart with niterations as shown in Fig.  {\ref 8}. It uses the subkey of 8 bit length and identifies the type of rotation to be performed and then do the rotations as described in iteration detail flowchart. Next iteration is carried out on the intermediate ciphertext produced in the previous iteration. This process is repeated n number of times to complete the encryption process. 
\section[{Fig. 8 : Encryption Process}]{Fig. 8 : Encryption Process}\par
Similarly, the decryption process is carried out exactly in the reverse manner, i.e. the n-th subkey is used first to reverse rotate the plate (in anti-clockwise direction or circular shift right rotation) and thereby obtaining the Intermediate Ciphertext (n-1). The reverse process is to be carried out for the same number of iterations with the same subkeys in reverse order as done in the encryption process. After completion of the n iterations in reverse order, we will obtain the original plaintext, refer Fig.  {\ref 9}.    
\section[{EXPERIMENTATION}]{EXPERIMENTATION}\par
In order to check the goodness of the improved cipher, we conducted lab experimentations on data in which the plaintext contained two halves, first containing all 0s and second containing all 1s. We have used Turbo C's Random Number Generator to take our keys of desired lengths. Here it is noteworthy that Turbo C's random number generator is not very good RNG. The Initial set of bits taken in the proposed ciphering technique used equal number of 0s and 1s. After enciphering using the above mentioned revised technique, we tested randomly selected 1000 bits for tests of Randomness from NIST specifications. The various tests selected for use by us vary in their importance and hardness as randomness tests \hyperref[b3]{[4]}. Randomness in the block ciphers is considered as an important aspect of its security. One may apply various tests to ensure that cipher can work like a Random Number Generator (RNG) \hyperref[b6]{[7]}. 
\section[{a) Monobit Test}]{a) Monobit Test}\par
In order to determine the number of 0s and 1s in the randomly selected bits after enciphering is approximately the same in proportion or not. If the resultant sequence becomes a random sequence, then arbitrarily selected bits must have approximately equal proportion of 0s and 1s. The focus of the test is the proportion of zeroes and ones for the entire sequence. The test assesses the closeness of the fraction of ones to ½, that is, the number of ones and zeroes in a sequence should be about the same. Result: Arbitrarily selected bits sequences from different length ciphers were selected for the Monobit tests and p-values show (Table \hyperref[tab_3]{4}) that all the tests were passed. 
\section[{b) Frequency within a Block}]{b) Frequency within a Block}\par
Another test of randomness tests the frequency of bits within a block. The focus of this test is on proportion of 1s within M-bit blocks. The purpose of this test is to determine whether the frequency of 1s in an Mbit block is approximately M/2. Our improved algorithm gave p-values as shown (Table \hyperref[tab_4]{5}) for this test.  
\section[{Result:}]{Result:}\par
The p-values for this test also show that 100\% of the random selected blocks from the encrypted sequence passed all the tests, which is a good improvement. 
\section[{c) Run Test}]{c) Run Test}\par
The focus of this test is the total number of runs in the sequence, where a run is an uninterrupted sequence of identical bits. A run of length k consists of exactly k identical bits and is bounded before and after with a bit of the opposite value. The purpose of the runs test is to determine whether the number of runs of ones and zeros of various lengths is as expected for a random sequence. The test was applied to 10 randomly selected sequences of the encrypted data for which the p-values (Table \hyperref[tab_5]{6}) below. We implemented our improved algorithm in C, on a data input of the size 16X16X16 = 163 array upto 32X32X32=323 array. Subsequences from the resultant NOTE: The code for the decrypting process will need the lastAxisOfRotationCounter value and the key. The key will be read in reverse order i.e. starting from 8 LSBs if encryption started from the 8 MSBs. 
\section[{ovember N d) Random Excursions Test}]{ovember N d) Random Excursions Test}\par
The focus of this test is the number of cycles having exactly K visits in a cumulative sum random walk. The cumulative sum random walk is derived from partial sums after the (0,1) sequence is transferred to the appropriate (-1, +1) sequence. A cycle of a random walk random that begin at and return to the origin. The purpose of this test is to determine if the number of visits consists of a sequence of steps of unit length taken at   
\section[{VII. ANALYSIS}]{VII. ANALYSIS}\par
The above algorithm assumes a pre-requisite of having a good unique generating function for random numbers based on a seed value, the results show that the cipher based on the 3D matrix rotation technique works good and implements confusion/diffusion technique very effectively. This 3D Block ciphering technique can be used in everyday encryption/ decryption as it is having good encrypting/decrypting efficiency too. 
\section[{VIII. COMPLEX FORMS}]{VIII. COMPLEX FORMS}\par
The reverse computational complexity of the proposed cipher for the interceptors and intruders can be further increased by introduction of XOR round before applying rotation in case of binary input plaintext. This can be done by making use of some agreed upon random number generator which generates unique 8 bit sequences with use of a seed. The generated bits can be XORed with some selected subset of the plate under operation. This will further increase the complexity of the cipher further and will be difficult to decrypt by the interceptors. 
\section[{IX. CONCLUSIONS}]{IX. CONCLUSIONS}\par
The above tests show a high rate of randomness of the bits shuffled using the improved technique. Also since the bits were initially divided in equal numbers in the two halves of the array, this shows that the cipher produces a good confusion-diffusion. It only requires an agreed upon RNG or Key for encryption-decryption. Although the new cipher can have variable number of keys used while encrypting the message, we recommend at least 2n iterations for n size array of input bits/text.\begin{figure}[htbp]
\noindent\textbf{3}\includegraphics[]{image-2.png}
\caption{\label{fig_0}Fig. 3 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-3.png}
\caption{\label{fig_1}.}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{4}\includegraphics[]{image-4.png}
\caption{\label{fig_2}Fig. 4 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-5.png}
\caption{\label{fig_3}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{5}\includegraphics[]{image-6.png}
\caption{\label{fig_4}Fig. 5 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{67}\includegraphics[]{image-7.png}
\caption{\label{fig_5}Fig. 6 :Fig. 7 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{12}\includegraphics[]{image-8.png}
\caption{\label{fig_6}? 1 2}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{910}\includegraphics[]{image-9.png}
\caption{\label{fig_7}Fig. 9 :`Fig. 10 :}\end{figure}
     \begin{figure}[htbp]
\noindent\textbf{2} \par 
\begin{longtable}{P{0.12087155963302752\textwidth}P{0.4055045871559633\textwidth}P{0.32362385321100917\textwidth}}
\multicolumn{2}{l}{Bit Value Rotation Type}\tabcellsep Clockwise/Shift\\
\tabcellsep \tabcellsep Left Rotations\\
00\tabcellsep \multicolumn{2}{l}{3D circular rotation 90°}\\
01\tabcellsep \multicolumn{2}{l}{3D circular rotation 180°}\\
10\tabcellsep \multicolumn{2}{l}{3D circular rotation 270°}\\
11\tabcellsep 3D circular shift left\tabcellsep The number of shifts\\
\tabcellsep rotation\tabcellsep is decided by 5678\\
\tabcellsep \tabcellsep bits combination\end{longtable} \par
 
\caption{\label{tab_0}Table 2 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{3} \par 
\begin{longtable}{P{0.5242990654205607\textwidth}P{0.3257009345794392\textwidth}}
\multicolumn{2}{l}{Bit Value Axis of Rotation}\\
00\tabcellsep X\\
01\tabcellsep Y\\
10\tabcellsep Z\\
11\tabcellsep X/Y/Z in rotation starting from X axis\\
\multicolumn{2}{l}{e) Encryption-Decryption Process}\end{longtable} \par
 
\caption{\label{tab_1}Table 3 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{1} \par 
\begin{longtable}{}
\end{longtable} \par
 
\caption{\label{tab_2}Table 1 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{4} \par 
\begin{longtable}{P{0.15740740740740738\textwidth}P{0.6925925925925925\textwidth}}
S No\tabcellsep p-value\\
1\tabcellsep 0.230139\\
2\tabcellsep 0.071861\\
3\tabcellsep 1\\
4\tabcellsep 0.230139\\
5\tabcellsep 0.548506\\
6\tabcellsep 0.317311\\
7\tabcellsep 1\\
8\tabcellsep 0.423711\\
9\tabcellsep 0.317311\\
10\tabcellsep 1\end{longtable} \par
 
\caption{\label{tab_3}Table 4 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{5} \par 
\begin{longtable}{P{0.17641509433962266\textwidth}P{0.6735849056603774\textwidth}}
Test Number\tabcellsep p-value\\
1\tabcellsep 0.596677\\
2\tabcellsep 0.21934\\
3\tabcellsep 0.688474\\
4\tabcellsep 0.14923\\
5\tabcellsep 0.276677\\
6\tabcellsep 0.75472\\
7\tabcellsep 0.369668\\
8\tabcellsep 0.829425\\
9\tabcellsep 0.428474\\
10\tabcellsep 0.908275\end{longtable} \par
 
\caption{\label{tab_4}Table 5 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{6} \par 
\begin{longtable}{P{0.24394618834080717\textwidth}P{0.40022421524663676\textwidth}P{0.20582959641255605\textwidth}}
\multicolumn{2}{l}{Test No p-Value}\tabcellsep Test of Randomness\\
1\tabcellsep 0.622762596\tabcellsep PASS\\
2\tabcellsep 0.161513387\tabcellsep PASS\\
3\tabcellsep 0.505676771\tabcellsep PASS\\
4\tabcellsep 0.333302675\tabcellsep PASS\\
5\tabcellsep 0.363302144\tabcellsep PASS\\
6\tabcellsep 1\tabcellsep PASS\\
7\tabcellsep 0.790469891\tabcellsep PASS\\
8\tabcellsep 0.011561519\tabcellsep PASS\\
9\tabcellsep 0.230139469\tabcellsep PASS\\
10\tabcellsep \multicolumn{2}{l}{0.613523364 PASS}\\
\multicolumn{3}{l}{Result: All the ten tests have passed.}\end{longtable} \par
 
\caption{\label{tab_5}Table 6 :}\end{figure}
 			\footnote{© 2011 Global Journals Inc. (US) Global Journal of Computer Science and Technology Volume XI Issue XIX Version I} 		 		\backmatter  			 \par
Here we present the pseudo-code of the algorithm in C. The code contains the major steps to be executed in which it reads the plaintext from a file and encrypt to a ciphertext in the file named out. The algorithm was executed several times to take some arbitrary selected bit lengths for inputs to the NIST tests. //here we can put code for sliding each row of plate k of X axis for(i=0; i<size/2; i++)\{ for(j=i; j<size-i-1; j++)\{ // code for shifting the terms of each row ntimes \} \} \} //similarly we had coded for other encryption rotation in various axis and the decryption rotation code in reverse direction to a particular state within a cycle deviates from what one would expect for a random sequence. This test is actually a series of eight tests (and conclusions), one test and conclusion for each of the states: -4, -3, -2, -1 and +1, +2, +3, +4.  
\subsection[{\#include}]{\#include}			 			  				\begin{bibitemlist}{1}
\bibitem[A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications, NIST Specifications]{b3}\label{b3} 	 		\textit{A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications, NIST Specifications},  		p. .  	 
\bibitem[Gollmann and Chambers (1989)]{b4}\label{b4} 	 		‘Clock-controlled shift registers: a review’.  		 			D Gollmann 		,  		 			W G Chambers 		.  	 	 		\textit{IEEE Journal on Communications}  		May 1989.  (7)  p. 4.  	 
\bibitem[Stallings]{b1}\label{b1} 	 		\textit{Cryptography and Network Security, Principles and Practices, Fourth Edition},  		 			William Stallings 		.  		Pearson Education.  	 
\bibitem[Dhall (2010)]{b7}\label{b7} 	 		‘Design of a New Block Cipher Based on Conditional Encryption’.  		 			S Dhall 		,  		 			SK 		.  	 	 		\textit{Seventh International Conference on Information Technology},  				 (Las Vegas, NV)  		April 2010. 714 p. .  	 
\bibitem[Lipschutz]{b2}\label{b2} 	 		 			Seymour Lipschutz 		.  		\textit{Data Structures},  				Tata McGraw Hill Publishing Company Ltd.  	 
\bibitem[Schneier]{b0}\label{b0} 	 		 			Bruce Schneier 		.  	 	 		\textit{Applied Cryptography},  				John Wiley \& Sons.  	 
\bibitem[Suri (2010)]{b5}\label{b5} 	 		‘Sukhvinder Singh Deora: A Cipher based on 3D Array Block Rotation’.  		 			P R Suri 		.  	 	 		\textit{IJCSNS International Journal of Computer Science and Network Security}  		February 2010. 10  (2) .  	 
\bibitem[Alani (2010)]{b6}\label{b6} 	 		‘Testing Randomness in Ciphertext of Block-Ciphers Using DieHard Tests’.  		 			Mohammed M Alani 		.  	 	 		\textit{IJCSNS International Journal of Computer Science and Network Security}  		April 2010. 10  (4) .  	 
\end{bibitemlist}
 			 		 	 
\end{document}
